public static void EnableAction(SkillStateAction action, bool enabledState)
 {
     if (action == null)
     {
         return;
     }
     SkillEditor.RegisterUndo(Strings.get_Command_Enable_Action());
     action.set_Enabled(enabledState);
     SkillEditor.SaveActions(action.get_State(), true);
 }
 public static void EnableAllActions(SkillState state, bool enabledState)
 {
     SkillEditor.RegisterUndo(Strings.get_Command_Enable_All_Actions());
     SkillStateAction[] actions = state.get_Actions();
     for (int i = 0; i < actions.Length; i++)
     {
         SkillStateAction fsmStateAction = actions[i];
         fsmStateAction.set_Enabled(enabledState);
     }
     SkillEditor.SaveActions(state, true);
 }