Fix flow to/from battle, add cheat code to win

This commit is contained in:
henriquenakashima 2020-09-28 23:41:27 -04:00
parent 0b295af56b
commit 959458ad74
7 changed files with 58 additions and 16 deletions

View file

@ -4,12 +4,24 @@ using UnityEngine;
public abstract class StoryScene
{
private bool battleIsNext;
private SceneId nextSceneId = SceneId.None;
public abstract IEnumerator Play(StoryDisplay storyDisplay);
protected void SetNextSceneId(SceneId id) {
this.nextSceneId = id;
this.battleIsNext = false;
}
public void StartBattleThenNextSceneId(BattleParameters battleParameters, SceneId id) {
this.nextSceneId = id;
this.battleIsNext = true;
BattleSetup.StartBattle(battleParameters);
}
public bool IsBattleNext() {
return this.battleIsNext;
}
public SceneId GetNextSceneId() {