1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using Godot; using System; public partial class DungeonLevel : Node2D { TurnManager turnManager; public override void _Ready() { base._Ready(); turnManager = GetNode<TurnManager>("TurnManager"); turnManager.Tick(); } public void OnTurnEnd() { turnManager.Tick(); } }