Ejemplo n.º 1
0
 /// <summary>
 /// Closes the running game, if there's no game running do nothing.
 /// </summary>
 public virtual void Close()
 {
     if (Running)
     {
         // - Stop all loops
         InputGameLoop.Stop();
         UpdateGameLoop.Stop();
         GraphicGameLoop.Stop();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Close the running game.
        /// </summary>
        public virtual void Close()
        {
            if (!GameTree.CloseGame())
            {
                return;
            }

            PhysicsGameLoop.Stop();
            InputGameLoop.Stop();
        }