示例#1
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);
            }
        }