private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         OpenShop();
         ShopMG.chooseBagReflash(0);
     }
 }
Example #2
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);
 }