void Start()
 {
     DontDestroyOnLoad(this);
     museStats             = MuseumStats.instance;
     Events.SaveInitiated += SaveInventory;
     Events.LoadInitiated += LoadInventory;
     instance              = this;
     exhibitsInInventory.Clear();
     inventoryDisplaySlots = InventoryDisplayHolder.GetComponentsInChildren <Image>();
     inventoryNameSlots    = InventoryDisplayHolder.GetComponentsInChildren <TextMeshProUGUI>();
 }
예제 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
 void Start()
 {
     musStats     = MuseumStats.instance;
     musInventory = MuseumInventory.instance;
 }
 void Start()
 {
     museStats   = MuseumStats.instance;
     museStatsUI = this;
 }