// ReSharper disable UnusedMember.Local /// <summary> /// Delay initialization until first OnGUI to avoid interfering with runtime system intialization. /// </summary> public override void Initialize() { instance = this; if (fsmEditor == null) { fsmEditor = new FsmEditor(); } fsmEditor.InitWindow(this); fsmEditor.OnEnable(); }
private void OnDisable() { if (Initialized && fsmEditor != null) { fsmEditor.OnDisable(); } instance = null; }