Example #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         //Instantiate (explosion, transform.position, transform.rotation);
         print("Collision");
         Destroy(gameObject);
         gameController.AddMoney();
     }
     else
     {
         return;
     }
 }