xiandie/scene/ground/script/c03/s02_event_2d偷听陆仁小蝶对话后.gd

29 lines
423 B
GDScript3
Raw Normal View History

@tool
extends Event2D
# var prev_stage := 0
# var stage := 0
func _ready() -> void:
super._ready()
if Engine.is_editor_hint():
return
func _on_global_stage_updated(e: StringName, s: int):
super._on_global_stage_updated(e, s)
func _on_ground_ready(ground: Ground2D):
2025-07-06 12:44:06 +00:00
if stage == 0:
# 邀请小蝉晚饭
EventManager.set_stage(event, 1)
func _on_pre_stage_updated():
pass
func _on_stage_updated():
pass