示例#1
0
 public void OnEndDrag(PointerEventData eventData)
 {
     MainAudio.Play();
     if (rectTransform.position.y > -2.0f && rectTransform.position.y < 2.0f && rectTransform.position.x > -5.38f && rectTransform.position.x < -2.20f)
     {
         battleManager.SpawnNpc(rectTransform, npcNumber, npcCost);
         battleManager.AddCardToList(myPositionOnArray);
         Destroy(this.gameObject);
     }
 }