Hello everyone,
I was wondering if there is a way to stock functions on a List that a Coroutine can call randomly ?
In my case I want to randomly express between a list of five emotions that are basically like this:
void Happy()
{
do something
}
void Sad()
{
do something
}
...
And I would like to use them on something like that :
IEnumerator RandomEmotion()
{
yield return new WaitForSeconds(Random.Range(5, 10));
Random.Range(Emotion1, Emotion5);
}
Sorry, I’m not very familiar with Lists so if anyone have a idea on how can I proceed to achieve that that’s would be wonderful
Antoine