To make the character scream eternally in Unity using C#, you can use an animation and an audio clip.
First, create an animation clip that contains the screaming animation. Then, attach the audio clip containing the screaming sound to the character.
Next, in your C# script, reference the animation and audio components and set them to play continuously using a loop:
main.cs517 chars21 lines
Attach the ScreamController
script to your character in the scene and you should hear the character scream endlessly while also animating.
gistlibby LogSnag