Example #1
0
 public void BattleStart(LevelInfo levelInfo)
 {
     _sceneFade.BeginFading();
     gameObject.AddComponent <RunOnCondition> ().RunWhenBoolChange(_sceneFade.IsOpeque, true, delegate {
         _battleController.LoadLevel(levelInfo);
         _maps [_selectMapIndex].gameObject.SetActive(false);
         _battleController.gameObject.SetActive(true);
         _sceneFade.ExitFading();
         _battleController.gameObject.AddComponent <RunOnCondition> ().RunWhenBoolChange(delegate {
             return(_sceneFade.gameObject.activeSelf);
         },
                                                                                         false, delegate {
             _battleController.RotateShells();
         });
     });
 }