mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
fix(Weapon): 修复攻击函数未返回结果的问题
This commit is contained in:
@@ -113,7 +113,7 @@ func playSound(sound: String):
|
|||||||
func tryAttack(entity: EntityBase):
|
func tryAttack(entity: EntityBase):
|
||||||
if cooldownTimer.start():
|
if cooldownTimer.start():
|
||||||
if entity.useEnergy(needEnergy):
|
if entity.useEnergy(needEnergy):
|
||||||
attack(entity)
|
return attack(entity)
|
||||||
|
|
||||||
# 抽象
|
# 抽象
|
||||||
func update(_to: int, _origin: Dictionary, _entity: EntityBase):
|
func update(_to: int, _origin: Dictionary, _entity: EntityBase):
|
||||||
|
|||||||
Reference in New Issue
Block a user