mixedcards/Assets/Story/StoryScene.cs
2020-09-28 23:41:27 -04:00

33 lines
885 B
C#

using System.Collections;
using System.Collections.Generic;
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() {
if (nextSceneId == SceneId.None) {
throw new System.InvalidOperationException("nextSceneId is None");
}
return this.nextSceneId;
}
}