mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色): 添加角色生成时的行走动画
在Chick角色和EntityBase基类中添加spawn方法,用于在角色生成时播放行走动画
This commit is contained in:
@@ -106,6 +106,7 @@ func _ready():
|
||||
)
|
||||
healthChanged.emit(health)
|
||||
energyChanged.emit(energy)
|
||||
spawn()
|
||||
func _process(_delta):
|
||||
health = clamp(health, 0, fields.get(FieldStore.Entity.MAX_HEALTH))
|
||||
energy = clamp(energy, 0, fields.get(FieldStore.Entity.MAX_ENERGY))
|
||||
@@ -256,6 +257,8 @@ func heal(count: float):
|
||||
return count
|
||||
func register():
|
||||
pass
|
||||
func spawn():
|
||||
pass
|
||||
|
||||
static func generate(
|
||||
entity: PackedScene,
|
||||
|
||||
Reference in New Issue
Block a user