void Awake() { if (instance == null) { instance = this; InitializeInventories(); playerStats = player.GetComponent <Player>().PlayerStats; } else { Destroy(gameObject); } }
void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; activeQuestListKeys = new List <string>(); playerStats = player.GetComponent <Player>().PlayerStats; qlUI = new QuestLogUI(questLog, questEntry); DontDestroyOnLoad(gameObject); } }