- Home /
Question by
absolutegames1 · Jul 30, 2013 at 02:12 PM ·
multiplayer
Multiplayer Scoreboard
Hi guys. Im following Remix games multiplayer tutorials and i cant find a way to make or setup the scoreboard and chat. if anyone wants to help me that would be great ! Script : using UnityEngine; using System.Collections;
public class GUIManager : MonoBehaviour
{
public GUISkin GuiSkin;
public void ScoreBoard()
{
GUI.skin = GuiSkin;
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();
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613111207im_/https://answers.unity.com/themes/thub/images/avi.jpg)