public AudioClip GetBallSound(string tag) { return(soundStorage.GetBallSound(tag)); }
private void OnCollisionEnter2D(Collision2D col) { Collider2D hitCollider = col.collider; audioSource.PlayOneShot(soundStorage.GetBallSound(hitCollider.tag)); }
public AudioClip GetBallSound(string tag) { return(soundStorage.GetBallSound(tag)); }
private void OnCollisionEnter2D(Collision2D col) { Collider2D hitCollider = col.collider; audioSource.PlayOneShot(soundStorage.GetBallSound(hitCollider.tag)); }