Example #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     ballMovement.TweakVelocity();
     if (ballMovement.IsBallLocked() == false)
     {
         if (collision.gameObject.CompareTag(CONST_VALUES.BREAKABLE_TAG) == false && (collision.gameObject.CompareTag(CONST_VALUES.UNBREAKABLE_TAG)) == false)
         {
             bounceSound.Play(audioSource);
         }
     }
 }