Beispiel #1
0
 public static string GetActionLabel(SkillStateAction action)
 {
     if (action == null)
     {
         return(Strings.get_Label_None_Action());
     }
     if (string.IsNullOrEmpty(action.get_Name()))
     {
         return(Labels.GetActionLabel(action.GetType()));
     }
     return(action.get_Name());
 }
Beispiel #2
0
        public static void EditAsset(object userdata)
        {
            SkillStateAction fsmStateAction = (SkillStateAction)userdata;
            Object           asset          = ActionScripts.GetAsset(fsmStateAction);

            if (asset != null)
            {
                AssetDatabase.OpenAsset(asset);
                return;
            }
            Debug.LogError(string.Format(Strings.get_Error_Missing_Script(), fsmStateAction.get_Name()));
        }