Layout2 Fix

This commit is contained in:
brausjonas
2023-02-20 21:11:11 +01:00
parent 02e344c4a1
commit 12c8843fed
5 changed files with 8 additions and 20 deletions
+2
View File
@@ -25,6 +25,7 @@ public class Client : MonoBehaviour
[SerializeField] private TMP_Text[] playerNameTexts;
[SerializeField] private GameObject[] playerInfo;
private PlayerInfoElements[] playerInfoElements = new PlayerInfoElements[4];
[SerializeField] private GameObject layout2;
private void Start()
{
@@ -114,6 +115,7 @@ public class Client : MonoBehaviour
players[job.data[1]].name = Encoding.ASCII.GetString(name).Replace(" ", "");
players[job.data[1]].index = job.data[1];
players[job.data[1]].textCoinsInfo = playerInfoElements[job.data[1]].textCoinInfo;
players[job.data[1]].Layout2 = layout2;
players[job.data[1]].Init();
playerNameTexts[job.data[1]].text = Encoding.ASCII.GetString(name).Replace(" ", "");