Wait and fading script


I would like to modify FadeInOut script (wiki script).

So, I would like to wait 5 seconds for exemple before fading my texture out and playing my game.

I tried “yield WaitForSeconds (5);” on many lines into the script but it’s not working !!!

Could you help me?!!

thx a lot.


Now, it’s working…

Sorry to have troubled you !