Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class GUIManager : MonoBehaviour
- {
- public void ScoreBoard()
- {
- GUILayout.BeginArea(new Rect(Screen.width / 2 - 200, Screen.height / 2 - 250, 400, 500));
- GUILayout.Label("Scoreboard Tutorial");
- foreach (MPPlayer player in MultiplayerManager.instance.PlayerList)
- {
- GUILayout.BeginHorizontal("Box");
- //Player Names
- GUILayout.BeginVertical(GUILayout.Width(150));
- GUILayout.Label(player.PlayerName, GUILayout.Width(150));
- GUILayout.EndVertical();
- //PlayerScore
- GUILayout.BeginVertical(GUILayout.Width(75));
- GUILayout.Label(player.PlayerScore.ToString(), GUILayout.Width(75));
- GUILayout.EndVertical();
- //PlayerKills
- GUILayout.BeginVertical(GUILayout.Width(75));
- GUILayout.Label(player.PlayerKills.ToString(), GUILayout.Width(75));
- GUILayout.EndVertical();
- //PlayerDeaths
- GUILayout.BeginVertical(GUILayout.Width(75));
- GUILayout.Label(player.PlayerDeahts.ToString(), GUILayout.Width(75));
- GUILayout.EndVertical();
- GUILayout.EndHorizontal();
- }
- GUILayout.EndArea();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement