public ActionLibraryExplorer() { hideFlags = HideFlags.DontSave; if (_instance != null) { Debug.LogError("Instance already exists"); DestroyImmediate(this); return; } _instance = this; titleContent = new GUIContent("Library Explorer"); }
public void OnDestroy() { _instance = null; }