public BehaveEditor() { hideFlags = HideFlags.DontSave; if (m_Instance != null) { Debug.LogError("Trying to create two instances of singleton. Self destruction in 3..."); DestroyImmediate(this); return; } if (this.Editor == null) { Debug.LogError("Failed to link with library implementation"); DestroyImmediate(this); return; } m_Instance = this; }
public BehaveEditor () { hideFlags = HideFlags.DontSave; if (m_Instance != null) { Debug.LogError ("Trying to create two instances of singleton. Self destruction in 3..."); DestroyImmediate (this); return; } if (this.Editor == null) { Debug.LogError ("Failed to link with library implementation"); DestroyImmediate (this); return; } m_Instance = this; }
public void OnDestroy() { Editor.OnDestroy(); m_Instance = null; }
public void OnDestroy () { Editor.OnDestroy(); m_Instance = null; }