Wouldn’t that mean that I’d have to repeat the long tedious process of dragging the sounds for each one of the characters. Especially i mean tedious since all the character types use the same sounds.
For example i may have 20 types of guys(different 3d model)
they all should use same sounds. Say 30 sounds.
But if i do it with the method above, then i’d have to repeat the dragging of 30 sounds onto the Audiosource pane for each character.
This is the method I"m referring to, I learned it from a Video Tutorial
- Add an AudioSource component to your game object
- Create a script . just an example. And for now only one sound, but imagine 30 or 100 sounds.
AUdioClip myClip
void start(){
audio.PlayOneShot(myclip)
}
3 Drag the script to the Game object
4 now drag the sound to the variable “my Clip” that appears in the Audio Source part of the inspector of the Game Object
So Yeah this process is cool but imagine i had 30 sounds or 100
and 20 different types of characters to do this process for.