public void ChangeScene(SceneType sceneType) { if (m_currentScene != null) { m_currentScene.Exit(); } m_currentScene = GetScene(sceneType); if (m_currentScene != null) { m_currentScene.Enter(); } m_currentSceneType = sceneType; }