Exemple #1
0
        private void Start()
        {
            BattleSystem.Get().OnBattleFinished += OnBattleFinished;
            BattleView.Initialize();

            BattleHud.Get().Initialize();

            BattleState = new InitialBattleState(this);
        }
Exemple #2
0
 private void OnBattleFinished(BattleResult Result)
 {
     if (Result == BattleResult.Lose)
     {
         BattleState = new LoseBattleState(this);
     }
     else if (Result == BattleResult.Win)
     {
         BattleState = new WinBattleState(this);
     }
 }