Example #1
0
 void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         PlayerInformation.AddItem(item);
         Destroy(this.gameObject);
     }
 }