public ActionNetworkEditor() { hideFlags = HideFlags.DontSave; if (_instance != null) { Debug.LogError("Instance already exists"); DestroyImmediate(this); return; } _instance = this; titleContent = new GUIContent("Network Editor"); currentContent = empty; }
public void OnDestroy() { _instance = null; }