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