public PlayBattleState(BattleSceneController BattleSceneControllerRef) : base(BattleSceneControllerRef) { BattleSystem.Get().OnTimerFinished += SetNextState; BattleSystem.Get().SetPlayBattleState(); BattleHud.Get().SetPlayBattleState(); }
public InitialBattleState(BattleSceneController BattleSceneControllerRef) : base(BattleSceneControllerRef) { BattleHud.Get().SetInitialBattleState(); BattleSystem.Get().SetInitialBattleState(); BattleSceneControllerCached.BattleState = new MainBattleState(BattleSceneControllerCached); }
private void Start() { BattleSystem.Get().OnBattleFinished += OnBattleFinished; BattleView.Initialize(); BattleHud.Get().Initialize(); BattleState = new InitialBattleState(this); }
public MainBattleState(BattleSceneController BattleSceneControllerRef) : base(BattleSceneControllerRef) { BattleHud.Get().OnPlayBattleButtonEvent += SetPlayState; WindowManager.OnDiscardWindowOpened += SetDiscardState; BattleSystem.Get().SetMainBattleState(); BattleSceneControllerRef.BattleView.SetBattleCardsControlStrategy(); }
public LoseBattleState(BattleSceneController BattleSceneControllerRef) : base(BattleSceneControllerRef) { BattleSystem.Get().StopBattleTimer(); BattleHud.Get().OpenWindow <LoseWindow>(); }
private ActionEffectData DoAction_DrawCard(Action AttackerAction) { BattleSystem.Get().DrawCards(AttackerAction.DrawCards); return(new ActionEffectData("Draw " + AttackerAction.DrawCards, "", true)); }
private void SetNextState() { BattleSystem.Get().OnTimerFinished -= SetNextState; BattleSceneControllerCached.BattleState = new InitialBattleState(BattleSceneControllerCached); }