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(); }); }); }
void BattleAbort() { _sceneFader.BeginFading(() => { gameObject.SetActive(false); _sceneFader.ExitFading(); }); }
public void EndDisplay() { _returnButton.SetActive(false); if (_canClick) { DynamicToInstant(); _canClick = false; } _fader.BeginFading(() => { _player.bagManagement.UpdateData(); Clear(); _battleController.gameObject.SetActive(false); _fader.ExitFading(() => { _gamerController.BattleComplete(); }); }); }