mixedcards/Assets/Story/StorySceneDatabase.cs

14 lines
416 B
C#

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