Example #1
0
 public static SceneMachine GetSingleton()
 {
     if (m_Instance == null)
     {
         m_Instance = new SceneMachine();
     }
     return(m_Instance);
 }
Example #2
0
 public static GameScene GetCurrentScene()
 {
     return(SceneMachine.GetSingleton().GetCurrentState() as GameScene);
 }
Example #3
0
 public static GameScene GetLastScene()
 {
     return(SceneMachine.GetSingleton().m_LastState as GameScene);
 }