godot-psd-training/sceen/people/Idle.gd

10 lines
154 B
GDScript3
Raw Normal View History

2024-06-17 13:15:00 +08:00
extends StateBase
## 玩家节点
@export var player:Player
func enter() -> void:
##运行父类方法
super.enter()
player.people.is_moving = false