godot-psd-training/sceen/people/Walk.gd
2024-06-17 13:15:00 +08:00

10 lines
153 B
GDScript

extends StateBase
## 玩家节点
@export var player:Player
func enter() -> void:
##运行父类方法
super.enter()
player.people.is_moving = true