// OnDisable is called when the manager script component is disabled. You don't need this. public virtual void OnDisable() { UI.Destroy(); #if UNITY_EDITOR && !UNITY_WEBPLAYER if (Reloader != null) { Reloader.Stop(); Reloader = null; } #endif }
public void OnDisable() { // Called when a scene changes. UI.Destroy(); }