Home > other >  There is something wrong with the [for] this code? Why the space has been in the original level afte
There is something wrong with the [for] this code? Why the space has been in the original level afte

Time:09-23

Var winTexture: Texture2D;
Private var myTime: float=0;
Private var isNext=false;
The function OnGUI ()
{
If (isNext)
{
GUI. DrawTexture
(
The Rect
(
Screen width/2-179, Screen. Height/2-90358180
),
WinTexture, ScaleMode. ScaleToFit, true, 0
);
}
}
The function Update ()
{
MyTime +=Time. DeltaTime;
If (myTime>
=5)IsNext=true;
If (Input. GetButtonDown (" Jump ") & amp; & IsNext)
{
IsNext=false;
Var index: int=Application. LoadedLevel;
If (index
=1)Application. LoadLevel (index + 1);
If (index==2)
Application. LoadLevel (0);
}
}

According to after the blank space is repeated here flashing according to
after a flash

CodePudding user response:

The file - & gt; The build - & gt; The add curred to try 0/1/2 levels is lacking
  • Related