33 lines
885 B
C#
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;
|
|
}
|
|
}
|