1
1
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:
2025-08-29 12:51:43 +08:00
parent 896713c527
commit 5525bcd7bc
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -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,