Esempio 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;
        }
Esempio n. 2
0
 public override void _ExitTree()
 {
     S = null;
     Player.OnPlayerActionStarted   -= HandleOnPlayerActionStarted;
     Player.OnPlayerActionCompleted -= HandleOnPlayerActionCompleted;
 }