Пример #1
0
        public void SetPhase(GamePhase gamePhase)
        {
            if (gamePhase == null)
            {
                Log.WriteLine("GamePhase is null", this, "SetPhase");
                return;
            }

            this.gamePhase?.OnStop();
            this.gamePhase = gamePhase;
            this.gamePhase?.OnStart();
        }
Пример #2
0
 public void SetPhase(string phaseName)
 {
     SetPhase(GamePhase.Get(phaseName));
 }