public void ResetToLoginScreen() { m_Login.Client.Disconnect(); m_UserInterface.Reset(); if (!(m_CurrentScene is LoginState)) { CurrentState = new LoginState(); } }
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); } }
public void ResetToLoginScreen() { m_Login.Client.Disconnect(); m_UserInterface.Reset(); if (!(m_CurrentScene is LoginState)) CurrentState = new LoginState(); }