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