Esempio n. 1
0
 public static Object GetAsset(SkillStateAction action)
 {
     if (action != null)
     {
         return(ActionScripts.GetAsset(action.GetType()));
     }
     return(null);
 }
Esempio n. 2
0
        public static void Edit(Type actionType)
        {
            Object asset = ActionScripts.GetAsset(actionType);

            if (asset != null)
            {
                AssetDatabase.OpenAsset(asset);
                return;
            }
            Debug.LogError(string.Format(Strings.get_Error_Missing_Script(), Labels.GetActionLabel(actionType)));
        }
Esempio n. 3
0
        public static void PingAssetByType(object userdata)
        {
            Type   type  = (Type)userdata;
            Object asset = ActionScripts.GetAsset(type);

            if (asset != null)
            {
                EditorGUIUtility.PingObject(asset);
                return;
            }
            Debug.LogError(string.Format(Strings.get_Error_Missing_Script(), type));
        }
Esempio n. 4
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()));
        }
Esempio n. 5
0
        public static void EditAssetByType(object userdata)
        {
            Type   type  = (Type)userdata;
            Object asset = ActionScripts.GetAsset(type);

            if (asset != null)
            {
                AssetDatabase.OpenAsset(asset);
                return;
            }
            Debug.LogError(string.Format(Strings.get_Error_Missing_Script(), type));
        }
Esempio n. 6
0
 public static Object GetActionScriptAsset(Type actionType)
 {
     return(ActionScripts.GetAsset(actionType));
 }
Esempio n. 7
0
 public static Object GetActionScriptAsset(SkillStateAction action)
 {
     return(ActionScripts.GetAsset(action));
 }