public static void CreateGUIStampListAsset()
    {
        GUIStampList list = ScriptableObjectUtil.CreateAsset <GUIStampList>();

        list.stampList = new List <GUIStamp>();
        string stampFolder = "Assets/Assets/Textures/stamps/Resources";

        string[] filePaths = Directory.GetFiles(stampFolder);
        for (int i = 0; i < filePaths.Length; i++)
        {
            string filePath = filePaths[i];
            if (!filePath.EndsWith(".meta"))
            {
                string fileName = Path.GetFileName(filePath);
                if (!fileName.StartsWith("stamp"))
                {
                    continue;
                }
                GUIStamp stampObj = new GUIStamp();
                stampObj.stampPath = fileName.Replace(".psd", "");
                stampObj.iconPath  = stampObj.stampPath + ".icon";
                list.stampList.Add(stampObj);
            }
        }
        EditorUtility.SetDirty(list);
    }
Esempio n. 2
0
 public static void CreateSupportData()
 {
     ScriptableObjectUtil.CreateAsset <GunSupportData>();
 }
Esempio n. 3
0
 public static void CreateShotData()
 {
     ScriptableObjectUtil.CreateAsset <ShotData>();
 }
Esempio n. 4
0
 public static void CreateAsset()
 {
     ScriptableObjectUtil.CreateAsset <UnitData>();
 }
Esempio n. 5
0
 public static void CreateFireballData()
 {
     ScriptableObjectUtil.CreateAsset <FireballData>();
 }
Esempio n. 6
0
 static void CreateCameraShakeDataList()
 {
     ScriptableObjectUtil.CreateAsset <SRCameraShake.CameraShakeDataList>();
 }
Esempio n. 7
0
    public static void CreateAsset()
    {
        PotionDescription desc = ScriptableObjectUtil.CreateAsset <PotionDescription>();

        desc.type = ItemTypes.Potion;
    }
 public static void CreateSheetAsset()
 {
     ScriptableObjectUtil.CreateAsset <SheetObject> ();
 }
 public static void CreateAlbumsAsset()
 {
     ScriptableObjectUtil.CreateAsset <Albums> ();
 }
Esempio n. 10
0
 public static void CreateAsset()
 {
     ScriptableObjectUtil.CreateAsset <WeaponDB> ();
 }
Esempio n. 11
0
 public static void CreateAsset()
 {
     ScriptableObjectUtil.CreateAsset <Team> ();
 }