示例#1
0
 public override void OnReleased()
 {
     refreshtimer.Stop();
     m_initialized = false;
     StatusWindowInterface.destroy();
     base.OnReleased();
 }
示例#2
0
 public override void OnReleased()
 {
     if (ThreadingCSLStatsMod.instance != null)
     {
         ThreadingCSLStatsMod.instance.refreshtimer.Stop();
     }
     StatusWindowInterface.destroy();
     base.OnReleased();
 }
示例#3
0
        //handles loading the threading mod
        //seems to avoid the "load game" problem while in-game
        public override void OnLevelLoaded(LoadMode mode)
        {
            base.OnLevelLoaded(mode);

            if (mode != LoadMode.LoadGame && mode != LoadMode.NewGame)
            {
                return;
            }
            StatusWindowInterface.destroy();
            if (ThreadingCSLStatsMod.instance != null)
            {
                ThreadingCSLStatsMod.instance.refreshtimer.Stop();
                ThreadingCSLStatsMod.instance.m_initialized = false;
            }
        }