system
1
hi guys
I always add audio to trigger and use audio.Play ();for playing the audio. But I used code on button “R” …
and I attached this to my camera… also my camera has another audio source. so my code doesn’t work.
I want to do this order :
PLAY AUDIO SOURCE FROM OTHER GAMEOBJECT…
please tell me full form of it… thnx!
Waz
2
You need to get a reference to the other object (eg. using a var and setting it in the inspector, or using FindWithTag during Awake), then you just:
otherObject.audio.Play();