Hi.
I made a Unity shoot’em up game for desktop and I’m trying to turn it in a Android game (changing the inputs, basically).
However, I’m having some troubles.
I’m not able to load a level build to show the instructions. This level just have a background and a text, nothing else. In my script I have this:
void OnGUI ()
{
GUI.skin = skin;
if (GUI.Button (new Rect (Screen.width-240, Screen.height-110, 200, 40),
"Play"))
{
Application.LoadLevel ("SpaceShipGame");
}
if (GUI.Button (new Rect (Screen.width-240, Screen.height-60, 200, 40),
"Instructions"))
{
Application.LoadLevel ("GameInstructions");
}
if(Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}
}
In the desktop application, everything works fine.
I couldn’t figure out what is the problem.
Thanks for any help.