private void OnTriggerStay2D(Collider2D collision) { if (Input.GetKeyDown(KeyCode.Z)) { // AudioManager.instance.Play(pickUpSoind); inv.GetAnItem(itemID, count); if (qm.AssignedQuest) { UIEventHandler.ItemAdded(itemID); } Destroy(this.gameObject); // 맵에서 삭제 } }