Fix flow to/from battle, add cheat code to win
This commit is contained in:
parent
0b295af56b
commit
959458ad74
7 changed files with 58 additions and 16 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue