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