A small and (hopefully) simple question to answer. I have a script where an audio clip is played, but I don’t want that audio clip to be played on the object (had I added an audio source), but on my character controller. Anyone know how I could to that?
You have to do something like this:
//C# code by Paul Ignasiak
AudioClip clip;
Transform player;
void PlayAudio()
{
AudioSource.PlayClipAtPoint(player.position, clip); //or clip, player
//cant remember that ;/.
}