|
I'm trying to add different audio clips to different audio sources. Right now I can get both audio clips in, but they overwrite each other in the first audio source and the second audio source is never used. The second audio source is on a different game object.
The next code is called from a separate class that controls the movement: when you press down sound1 plays and when you press up, sound2 plays. However, they both play in the same audio source.
The code for sound 2 is the exact same.
So basically, I want Sound2 to load into Object2's audio source. Thanks for any help.
(comments are locked)
|
|
Thanks for the reply, I'm using 2 different game objects, each has an audio source. I'm trying to add the audio clip to the second game object. But, I don't know how to specify the second object rather than the first.
Jul 09 '10 at 09:11 PM
DragonSlaya
In your case, just do Object1.audio/Object2.audio, probably.
Jul 09 '10 at 10:19 PM
Tetrad
(comments are locked)
|
