void OnDisable() // ReSharper restore UnusedMember.Local { #if DEBUG if (DebugMode) { Debug.Log("GuiInspector disabled"); } #endif TurnOff(); _instance = null; SystemManager.Instance.DisposingSignal.Disconnect(DisposingSlot); }
private void DisposingSlot(object[] parameters) { _instance = null; TurnOff(); }
void OnDisable() // ReSharper restore UnusedMember.Local { #if DEBUG if (DebugMode) Debug.Log("GuiInspector disabled"); #endif TurnOff(); _instance = null; SystemManager.Instance.DisposingSignal.Disconnect(DisposingSlot); }