Example #1
0
 void OnCollisionEnter(Collision other)
 {
     if (other.gameObject.tag == "Brick")
     {
         Destroy(other.gameObject, 0.1f);
         paddle.PlayHitAudio();
         paddle.bricksRemaining--;
         paddle.UpdateScore();
     }
 }