xiandie/scene/ground/scene/c03/s11_胖子游戏2.gd

34 lines
531 B
GDScript

@tool
extends AnimationRoot
# 覆盖该方法
func _default_data() -> Dictionary:
return {"has_entered": false}
func _ready() -> void:
super._ready()
if Engine.is_editor_hint():
return
#region node_reference
#endregion
# 读取设置变量名
func _setup_node_reference() -> void:
pass
func _on_ground_ready() -> void:
_check_first_enter()
func _check_first_enter() -> void:
if not data["has_entered"]:
await SceneManager.lock_player(0, 6, true)
SceneManager.unlock_player()
set_data("has_entered", true)