Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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);
 }