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); } }