void ItemLeftClick(PointerEventData eventData) { int _count = eventData.hovered.Count; if (_count == 0) { return; } ShopItemPrice.UseItems _temp = ShopItemPrice.UseItems.none; for (int i = 0; i < _count; i++) { if (eventData.hovered[i].tag == "ShopItem") { //구입 확인창으로 연결 && 해당하는 아이템 ShopItemPrice temp = eventData.hovered[i].GetComponent <ShopItemPrice>(); _temp = temp.useitems; switch (_temp) { case ShopItemPrice.UseItems.hpPotion: spawnItem = useitemsPF.hpPotion; break; //case ShopItemPrice.UseItems.mpPotion: // spawnItem = useitemsPF.mpPotion; // break; } ItemBuyCheck(); return; } } }
void RightClickBuy(ShopItemPrice.UseItems _temp) { }