Ejemplo n.º 1
0
        public override void _EnterTree()
        {
            if (S == null)
            {
                S = this;
            }
            else
            {
                GD.PrintErr($"{TAG} - More than one GameRoundManager exists in tree");
                QueueFree();
            }

            Player.OnPlayerActionStarted   += HandleOnPlayerActionStarted;
            Player.OnPlayerActionCompleted += HandleOnPlayerActionCompleted;
        }
Ejemplo n.º 2
0
 public override void _ExitTree()
 {
     S = null;
     Player.OnPlayerActionStarted   -= HandleOnPlayerActionStarted;
     Player.OnPlayerActionCompleted -= HandleOnPlayerActionCompleted;
 }