
using UnityEngine;
bool showMain = true;
int lastLevel = 1;
GUI.skin.font = font;
int withFactor = Screen.width / 20;
GUI.Box (new Rect (0, 0, 12 * withFactor, 12 * heightFactor), “Arcadian”);
if (GUI.Button (new Rect (2 * withFactor, 6 * heightFactor, 8 * withFactor, 2 * heightFactor), “About”)) {
if (GUI.Button (new Rect (2 * withFactor, 9 * heightFactor, 8 * withFactor, 2 * heightFactor), “Quit”)) {
if (GUI.Button (new Rect (2 * withFactor, 95 * heightFactor/10, 8 * withFactor, 2 * heightFactor), “Back to main menu”)) {
GUI.Label (new Rect (20 * withFactor/10, 23 * heightFactor/10, 10 * withFactor, 2 * heightFactor), “Developed by EmbeddedSoft Canada © 2014”);
if (GUI.Button (new Rect (2 * withFactor, 95 * heightFactor/10, 8 * withFactor, 2 * heightFactor), “Back to main menu”)) {
if (GUI.Button (new Rect (45 * withFactor/10, 25 * heightFactor/10, 3 * withFactor, 2 * heightFactor), “Level 2”))
if (lastLevel<3)
if (lastLevel<4)
if (lastLevel<5)
if (lastLevel<6)
if (lastLevel<7)
if (lastLevel<8)
if (lastLevel<9)
GUI.skin.button.fontSize = 3 * withFactor / 5;
Previous Post
Add your comment