void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of Shop Inventory found"); } instance = this; }
// 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>(); }
// Start is called before the first frame update void Start() { shopInventory = ShopInventory_VFP.instance; }