Ejemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         OpenShop();
         ShopMG.chooseBagReflash(0);
     }
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(this);
     }
     instance = this;
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
    public void onClickShopGoods()
    {
        ShopMG.reflashGoodsinfo(goodsinfo, ismybagItem, shopslotid);

        selecticon.SetActive(isshowselect);
    }