private void drawSpectateButton(float width, float height) { if (UnityEngine.GUI.Button(new Rect( (Screen.width / 2) - (width / 2), (Screen.height / 2) + height, width, height), "Spectate", GUIStyles.ButtonStyle(Screen.height, Screen.width))) { TeamSelector.IsSpectator = true; Application.LoadLevel(Application.loadedLevel + 1); } }
private void drawPlayButton(float width, float height) { UnityEngine.GUI.backgroundColor = new Color(121f, 180f, 150f); if (UnityEngine.GUI.Button(new Rect( (Screen.width / 2) - (width / 2), (Screen.height / 2) - height, width, height), "Play", GUIStyles.ButtonStyle(Screen.height, Screen.width))) { TeamSelector.IsSpectator = false; Application.LoadLevel(Application.loadedLevel + 1); } }
private void drawTitle() { UnityEngine.GUI.contentColor = new Color(140f, 156f, 179f); UnityEngine.GUI.Box(new Rect(0, 0, Screen.width, Screen.height), "BloxAR", GUIStyles.BoxStyle(Screen.height, Screen.width)); }