public static void Init()
 {
     if (SkillEditor.SelectedFsm != null)
     {
         FsmInspector.BuildFsmVariableList(SkillEditor.SelectedFsm);
     }
 }
        private static void RefreshTemplate()
        {
            if (FsmInspector.SelectedTemplate == null || Application.get_isPlaying())
            {
                return;
            }
            SkillVariables fsmVariables = new SkillVariables(SkillEditor.SelectedFsm.get_Variables());

            SkillEditor.SelectedFsmComponent.SetFsmTemplate(FsmInspector.SelectedTemplate);
            SkillEditor.SelectedFsm.get_Variables().OverrideVariableValues(fsmVariables);
            FsmInspector.BuildFsmVariableList(SkillEditor.SelectedFsm);
        }
 private static void SelectTemplate(SkillTemplate template)
 {
     if (template == FsmInspector.SelectedTemplate)
     {
         return;
     }
     if (template != null)
     {
         UndoUtility.RegisterUndo(SkillEditor.SelectedFsmComponent, FsmEditorSettings.ProductName + " : Set FSM Template");
         SkillEditor.SelectedFsmComponent.SetFsmTemplate(template);
         FsmInspector.BuildFsmVariableList(SkillEditor.SelectedFsmComponent.get_FsmTemplate().fsm);
         SkillEditor.SetFsmDirty(true, false);
         return;
     }
     FsmInspector.ClearTemplate();
 }
 private static void ClearTemplate()
 {
     SkillEditor.SelectedFsmComponent.Reset();
     SkillEditor.SelectedFsmComponent.SetFsmTemplate(null);
     FsmInspector.BuildFsmVariableList(SkillEditor.SelectedFsmComponent.get_Fsm());
 }