public void AddScene(Scene scene) { if (!scenes.Contains(scene)) { scenes.Add(scene); } }
/// <summary> /// Change scene by object /// </summary> /// <param name="scene"></param> public void SetScene(Scene scene) { AddScene(scene); currentScene = scene; LoadCurrrentScene(); }
/// <summary> /// Change scene by name /// </summary> /// <param name="sceneName"></param> public void SetScene(string sceneName) { for (int i = 0; i < scenes.Count; ++i) { if (scenes[i].Name == sceneName) { currentScene = scenes[i]; currentScene.ResumeScene(); break; } } }
public void DeleteScene(Scene scene) { if (scenes.Contains(scene)) { scenes.Remove(scene); } }