bidde sehr
This commit is contained in:
@@ -11,6 +11,7 @@ using UnityEngine.SceneManagement;
|
||||
|
||||
public class Client : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TMP_Text textLeftMoves;
|
||||
private TcpClient client;
|
||||
private Stream stream;
|
||||
[SerializeField] private GameObject playerPrefab;
|
||||
@@ -191,6 +192,7 @@ public class Client : MonoBehaviour
|
||||
players[job.data[1]].textCoinsInfo = playerInfoElements[job.data[1]].textCoinInfo;
|
||||
players[job.data[1]].textStarsInfo = playerInfoElements[job.data[1]].textStarsInfo;
|
||||
players[job.data[1]].uiHandler = uiHandler;
|
||||
players[job.data[1]].textLeftMoves = textLeftMoves;
|
||||
players[job.data[1]].Init();
|
||||
|
||||
playerNameTexts[job.data[1]].text = Encoding.ASCII.GetString(name).Replace(" ", "");
|
||||
|
||||
@@ -54,6 +54,7 @@ public class PlayablePlayer : Player
|
||||
{
|
||||
wurfelt = true;
|
||||
wurfelZahl = Random.Range(1, 7);
|
||||
textLeftMoves.text = wurfelZahl + "";
|
||||
|
||||
client.SendWurfeln(wurfelZahl);
|
||||
|
||||
@@ -91,6 +92,7 @@ public class PlayablePlayer : Player
|
||||
else if (wurfelZahl > 0)
|
||||
{
|
||||
wurfelZahl--;
|
||||
textLeftMoves.text = wurfelZahl + "";
|
||||
|
||||
//the next field is the current field XD
|
||||
currentField = nextField;
|
||||
|
||||
@@ -17,7 +17,7 @@ public abstract class Player : MonoBehaviour
|
||||
public int index;
|
||||
public int coins = 0;
|
||||
public int stars = 0;
|
||||
public TMP_Text textCoinsInfo, textStarsInfo;
|
||||
public TMP_Text textCoinsInfo, textStarsInfo, textLeftMoves;
|
||||
protected bool eventstop = false;
|
||||
public UIHandler uiHandler;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user