public static void ResetActionName(SkillStateAction action)
 {
     if (action == null)
     {
         return;
     }
     SkillEditor.RegisterUndo(Strings.get_Command_Reset_Action_Name());
     action.set_Name(action.get_IsAutoNamed() ? action.AutoName() : null);
     SkillEditor.SaveActions(action.get_State(), false);
     Actions.UpdateTooltip(action);
 }
 public static void RenameAction(SkillStateAction action, string newName)
 {
     if (action == null)
     {
         return;
     }
     SkillEditor.RegisterUndo(Strings.get_Command_Rename_Action());
     action.set_Name(newName);
     SkillEditor.SaveActions(action.get_State(), false);
     Actions.UpdateTooltip(action);
 }
 public static void AutoNameAction(SkillStateAction action)
 {
     if (action == null)
     {
         return;
     }
     SkillEditor.RegisterUndo("Auto Name Action");
     action.set_IsAutoNamed(!action.get_IsAutoNamed());
     action.set_Name(action.get_IsAutoNamed() ? action.AutoName() : null);
     SkillEditor.SaveActions();
     SkillEditor.SetFsmDirty();
 }