Hi. How to write code that change texture after 3, 4 and 5s. I mean something like that:
Timer is counting time.
If time is 0:30 show texture on screen with text(tips in game). I’ve got 10 textures in folder Textures. The texture should be background of the tip.
The Texture is fading after 3s. Then comes next tip with new texture and it fade after 4s. Next fade after 5s, etc. How to do it?
I tried something like:
Timer currTimer;
Texture2D background1;
Texture2D background2;
[...]
and then
curTimer = new Timer();
curTimer.Enabled = true;
curTimer.Interval = 100 //checking time after 0.1s
and then
void Start()
{
if (Timer == "30000")
{
void OnGUI()
{
GUI.DrawTexture(rect(200,150, 0,0), "background");
GUI.Text("To run faster press Shift");
}