public static bool GoToSceneView(string id) { if (_scenes.ContainsKey(id)) { if (_currentSceneView!=null) _currentSceneView.Pause(); _currentSceneView = _scenes[id]; _currentSceneView.Resume(); return true; } return false; }
public static SceneView CreateSceneView(string id, int backgroundColor = 0x000000) { if (_scenes.ContainsKey(id)) return null; var scene = new SceneView(backgroundColor, true); _scenes[id] = scene; return scene; }