public BehaveTreeEditor () { hideFlags = HideFlags.DontSave; if (s_Instance != null) { Debug.LogError ("Trying to create two instances of singleton. Self destruction in 3..."); Destroy (this); return; } Behave.Editor.TreeEditor.Init (this); s_Instance = this; title = "Behave editor"; }
public void OnDestroy () { s_Instance = null; Behave.Editor.TreeEditor.Instance.OnDestroy (); }