Basic Networking done

This commit is contained in:
2022-01-26 19:10:12 +05:30
parent d852b2bb2c
commit 891318680d
1111 changed files with 105855 additions and 780 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
using UnityEngine.UI;
namespace Mirror.Examples.MultipleMatch
{
public class PlayerGUI : MonoBehaviour
{
public Text playerName;
public void SetPlayerInfo(PlayerInfo info)
{
playerName.text = "Player " + info.playerIndex;
playerName.color = info.ready ? Color.green : Color.red;
}
}
}