public PhaseController(BattleManager driver) { this.battleManager = driver; this.battleBegin = new BattleBegin(this); this.roundBegin = new RoundBegin(this); this.characterAction = new CharacterAction(this); this.characterTurnBegin = new CharacterTurnBegin(this); this.characterTurnEnd = new CharacterTurnEnd(this); this.actionTargetTileChoice = new ActionTargetTileChoice(this); this.inventoryInteraction = new InventoryInteractionPhase(this); this.battleEnd = new BattleEnd(this); }
public IEnumerator ActuallyChooseAction(CharacterTurnBegin turnPhase) { yield return(new WaitForSeconds(.5f)); turnPhase.CpuActionParamsFilled(controller.GetBestAction()); }
public void ChooseAction(CharacterTurnBegin turnPhase) { StartCoroutine(ActuallyChooseAction(turnPhase)); }