public override void OnReleased() { refreshtimer.Stop(); m_initialized = false; StatusWindowInterface.destroy(); base.OnReleased(); }
public override void OnReleased() { if (ThreadingCSLStatsMod.instance != null) { ThreadingCSLStatsMod.instance.refreshtimer.Stop(); } StatusWindowInterface.destroy(); base.OnReleased(); }
//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; } }