Пример #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();
 }