Hey Guys,
I wanna play some random “player jumps”-sounds.
But there is a certain information missing.
What is the content of an AudioClip? How can I get the filepath from the audioclip?
Or in this case, how must I fill the AudioClip Array.
private GameObject character;
public AudioClip[] jumpArray;
void Start() {
character = GameObject.FindWithTag("Heavy");
jumpArray = new AudioClip[7];
jumpArray[0]=XXX;
}
And then how is a specific file played?
Like that?:
void update() {
AudioClip=jumpArray[1];
}
Thanks for you help.