示例#1
0
        private void OnDisable()
        {
            if (Initialized && fsmEditor != null)
            {
                fsmEditor.OnDisable();
            }

            instance = null;
        }
示例#2
0
        // tool windows (can't open them inside dll)
//
//        [SerializeField] private FsmSelectorWindow fsmSelectorWindow;
//        [SerializeField] private FsmTemplateWindow fsmTemplateWindow;
//        [SerializeField] private FsmStateWindow stateSelectorWindow;
//        [SerializeField] private FsmActionWindow actionWindow;
//        [SerializeField] private FsmErrorWindow errorWindow;
//        [SerializeField] private TimelineWindow timelineWindow;
//        [SerializeField] private FsmLogWindow logWindow;
//        [SerializeField] private ContextToolWindow toolWindow;
//        [SerializeField] private GlobalEventsWindow globalEventsWindow;
//        [SerializeField] private GlobalVariablesWindow globalVariablesWindow;
//        [SerializeField] private ReportWindow reportWindow;
//        [SerializeField] private AboutWindow aboutWindow;

        public override void Initialize()
        {
            instance = this;

            if (fsmEditor == null)
            {
                fsmEditor = new SkillEditor();
            }

            fsmEditor.InitWindow(this);
            fsmEditor.OnEnable();
        }
 public static void OpenSkillEditorWindow()
 {
     SkillEditorWindow.OpenWindow();
 }