示例#1
0
 public void ResetToLoginScreen()
 {
     Engine.Client.Disconnect();
     Engine.UserInterface.Reset();
     if (!(m_CurrentScene is LoginScene))
     {
         CurrentScene = new LoginScene();
     }
 }
示例#2
0
        public void Update(double totalTime, double frameTime)
        {
            AScene 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);
            }
        }