protected virtual void OnDestroy() { NGRealTimeEditorDebug.instance = null; Utility.UnregisterIntervalCallback(this.Repaint); }
protected virtual void OnEnable() { Utility.RestoreIcon(this); NGRealTimeEditorDebug.instance = this; Utility.RegisterIntervalCallback(this.Repaint, NGRealTimeEditorDebug.ForceRepaintRefreshTick); }