Start game, when A collides B and audio will play
What do I write this code? thanks everybody!
Take a look at OnTriggerEnter(), OnCollisionEnter(), and OnControllerColliderHit().
(Which to use will depend on how your objects are represented and what type of behavior you want.)
To Jesse Anders:
How to write play audio’s code? Thanks!
Look at Audio.Play() and the Audio class, on the Scripting Reference. I think it’s easy to play a sound.
Thanks Afisicos!
I’m success ![]()