void Awake()
 {
     if (instance != null)
     {
         Debug.LogWarning("More than one instance of Shop Inventory found");
     }
     instance = this;
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     FX = GetComponent <AudioSource>();
     shopUI.SetActive(false);
     animator      = shop.GetComponent <Animator>();
     shopInventory = ShopInventory_VFP.instance;
     shopInventory.onItemChangedCallBack += UpdateUI;
     shopSlots = shopItemsParent.GetComponentsInChildren <ShopSlot_VFP>();
 }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     shopInventory = ShopInventory_VFP.instance;
 }