private void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(gameObject); } }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } DontDestroyOnLoad(this); _cachedObjects = new Dictionary <Type, ScriptableObject>(); LoadScrptblObjects(); }
public static void CreateSpellItems() { ScriptableObjectManager.CreateAsset <SpellItemScriptableObject>(); }
public static void CreateWeapon() { ScriptableObjectManager.CreateAsset <WeaponScriptableObject>(); }
public static void CreateConsumables() { ScriptableObjectManager.CreateAsset <ConsumableScriptableObject>(); }
public static void CreateItems() { ScriptableObjectManager.CreateAsset <ItemsScriptablesObject>(); }