Exemplo n.º 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         InitializeInventories();
         playerStats = player.GetComponent <Player>().PlayerStats;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }