I am trying to make a sound play when the bullet in my game breaks. It is used here:
() void BreakBullet(){ GameObject effect = Instantiate(hitEffect, transform.position, Quaternion.identity); AudioSource.PlayClipAtPoint(bulletDestroy, transform.position); Destroy(effect, 5f); Destroy(gameObject); } ()
I am using AudioSource.PlayClipAtPoint to create an audio source so there is one audiosource playing even when bullet gets destroyed. Yet the sound never plays in-game, what's up with that?
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.