Пример #1
0
 /// <summary>
 /// Shutdown the class.
 /// </summary>
 public static void Shutdown()
 {
     if( instance != null )
     {
         instance.ShutdownInternal();
         instance = null;
     }
 }
Пример #2
0
        ///////////////////////////////////////////
        /// <summary>
        /// Initialization the class.
        /// </summary>
        /// <returns><b>true</b> if the object successfully initialized; otherwise, <b>false</b>.</returns>
        public static bool Init()
        {
            if( instance != null )
                Log.Fatal( "GameControlsManager class is already initialized." );

            instance = new GameControlsManager();
            bool ret = instance.InitInternal();
            if( !ret )
                Shutdown();
            return ret;
        }