I have a couple of animations that I want to be randomized when something happens. how can I go about that. I thought that maybe scripting
animation.Play(Random(“crawl”, “standUp”));
I thought that might work, but didn’t. any suggestions?
I have a couple of animations that I want to be randomized when something happens. how can I go about that. I thought that maybe scripting
animation.Play(Random(“crawl”, “standUp”));
I thought that might work, but didn’t. any suggestions?
You could try something like this:
string[] anims = { "crawl", "standUp" };
animation.Play(anims[Random.Range(0, anims.Length - 1)]);