public void StoreItemInfo(OnClickStoreItem onclick) { selector.gameObject.SetActive(true); selector.transform.SetXY(onclick.gameObject.transform.GetXY()); selector.Play(onclick.item > StoreItem.StoreWave ? HashIDs.menu.Outtro : HashIDs.menu.Intro); SetItemInfo(onclick.item); }
public void StoreItemSelected(OnClickStoreItem onclick) { if (onclick.item == StoreItem.StoreArmor && DataStorage.Hearts < heartsBeforeArmor) { return; } currentItem = onclick.item; optionsBoard.gameObject.SetActive(true); optionsBoard.SetX(onclick.gameObject.transform.GetX() + (currentItem > StoreItem.StoreWave ? -500 : 500)); ShowItemButtonOptions((int)currentItem); lastItemSelected = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject; menu.SetFocus(optionsBoard.Button()); for (int i = 0; i < itemButtons.Length; ++i) { itemButtons[i].interactable = false; } }