Exemple #1
0
    static void CreateCards()
    {
        CardsScriptableObject data = CreateInstance <CardsScriptableObject>();

        AssetDatabase.CreateAsset(data, "Assets/Scripts/Cards.asset");
        EditorUtility.SetDirty(data);
        AssetDatabase.SaveAssets();
    }
Exemple #2
0
 public void Initialize()
 {
     cardsSO = Resources.Load <CardsScriptableObject>("Cards");
 }