Exemple #1
0
        public override void Dispose()
        {
            GameFramework.UnregisterFromUpdate(this);
            Global.gEnv.pHardwareMouse.RemoveListener(this);

            base.Dispose();
        }
Exemple #2
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Destroy()
 {
     if (_instance != null)
     {
         GameFramework.UnregisterFromUpdate(_instance);
         _instance = null;
     }
 }
Exemple #3
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Destroy()
 {
     if (_instance != null)
     {
         GameFramework.UnregisterFromUpdate(_instance);
         Global.gEnv.pHardwareMouse.RemoveListener(_instance);
         _instance.Dispose();
         _instance = null;
     }
 }
Exemple #4
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Destroy()
 {
     GameFramework.UnregisterFromUpdate(_instance);
     _scenes.Clear();
     _instance = null;
 }
Exemple #5
0
 public void Destroy()
 {
     GameFramework.UnregisterFromUpdate(this);
     _onTimerExpired = null;
 }