mixedcards/Assets/Story/StorySceneDatabase.cs
2020-09-27 22:36:10 -04:00

16 lines
508 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StorySceneDatabase {
public static StoryScene Load(SceneId id) {
switch (id) {
case SceneId.Prologue_First:
return new Scene_Prologue_First();
case SceneId.Chapter1_Cave:
return new Scene_Chapter1_Cave();
default:
throw new System.NotImplementedException("StoryScene with id " + id + " missing.");
}
}
}