コード例 #1
0
ファイル: Game.cs プロジェクト: buraktaban0/CannonBall
        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
ファイル: Game.cs プロジェクト: buraktaban0/CannonBall
 public void SetPhase(string phaseName)
 {
     SetPhase(GamePhase.Get(phaseName));
 }