public void Start() { uiPointable = GetComponent <UIPointable>(); if (uiPointable != null) { uiPointable.Initialize( OnPointerEnter, OnPointerExit, OnPointerClick ); } }
public void Init(UIShopItem shopItem, InventoryItem item) { originalColor = bgImg.color; uiShopItem = shopItem; if (isDisabled) { DisableButton(); } txtPrice.text = item.WeaponConfig.BasePrice.ToString(); uiPointable = GetComponent <UIPointable>(); if (uiPointable != null) { uiPointable.Initialize( OnPointerEnter, OnPointerExit, OnPointerClick ); } }