예제 #1
0
 public void ResetToLoginScreen()
 {
     m_Login.Client.Disconnect();
     m_UserInterface.Reset();
     if (!(m_CurrentScene is LoginState))
     {
         CurrentState = new LoginState();
     }
 }
예제 #2
0
        public void Update(double totalTime, double frameTime)
        {
            AState current = m_CurrentScene;

            if (m_CurrentScene != null)
            {
                m_CurrentScene.Update(totalTime, frameTime);
            }

            //This is just incase a scene changes in the middle of updating.
            if (current != m_CurrentScene && m_CurrentScene != null)
            {
                m_CurrentScene.Update(totalTime, frameTime);
            }
        }
예제 #3
0
 public void ResetToLoginScreen()
 {
     m_Login.Client.Disconnect();
     m_UserInterface.Reset();
     if (!(m_CurrentScene is LoginState))
         CurrentState = new LoginState();
 }