HI, I already looked around for my problem but didn’t find a solution.
Here’s what I would like to do.
While my character is running in my endless side-scroller game, I would like to tell the player a little story. To do this, I want to use UI Text elements which have animations on them to fade in and out. So on the screen appears a text, e.g., “Hello you.” fades out again and then e.g. “Where are you going?” fade out again., and so on, and so on.
Here’s my problem now
I don’t know what would be the right approach to have the sentence fly in on after another.
So I tried trigger them with if statements (if (time == 5) say something, if (time == 8) says something else.) But this doesn’t seem efficient. Then I tried to do it with an animator and stateMachineBehaviour. That worked a little.
Maybe somebody could point me in the right direction?