private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { OpenShop(); ShopMG.chooseBagReflash(0); } }
private void Awake() { if (instance != null) { Destroy(this); } instance = this; }
public void OnPointerDown(PointerEventData eventData) { if (eventData.pointerCurrentRaycast.gameObject.name == "SelectBt") { selectPanel.transform.GetChild(whicnpanel).gameObject.SetActive(false); if (whicnpanel == 0) { whicnpanel = 1; } else { whicnpanel = 0; } selectPanel.transform.GetChild(whicnpanel).gameObject.SetActive(true); } ShopMG.chooseBagReflash(whicnpanel + 1); }
public void onClickShopGoods() { ShopMG.reflashGoodsinfo(goodsinfo, ismybagItem, shopslotid); selecticon.SetActive(isshowselect); }