Exemple #1
0
 public void OnTriggerEnter(Collider collision)
 {
     if (collision.transform.name == "Ball")
     {
         Instantiate(particles_square, transform.position, transform.rotation);
         audio.Play();
         mainGameScript.AddBonusScore();
     }
 }