void Update() { if (CurrentPhase != null && CurrentPhase.IsOver()) { CurrentPhase.Finish(); CurrentPhase = CurrentPhase.GoToNext(); CurrentPhase.Execute(this); } }
private void Start() { ShouldReload = false; Battle = new Battle(); Battle.Init(); PlayerCharacter.Init(MonsterSpawner, Battle.Player, StatsPanelController); EnemyCharacter.Init(MonsterSpawner, Battle.Enemy, StatsPanelController); StatsPanelController.gameObject.SetActive(false); CurrentPhase = new DraftPhase(); CurrentPhase.Execute(this); }