Example #1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Basket")
     {
         Destroy(this.gameObject);
         script.PlayerScored();
     }
 }