public void Awake() { if (instance == null) { instance = this; } else if (this != instance) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); dataPath = Application.persistentDataPath; slotsDataPath = System.IO.Path.Combine(dataPath, "listaDeSlots.json"); list = SlotsListManager.StartList(slotsDataPath); }
public void Awake() { dataPath = Application.persistentDataPath; slotsDataPath = System.IO.Path.Combine(dataPath, "listaDeSlots.json"); list = SlotsListManager.StartList(slotsDataPath); }