예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }