This commit is contained in:
brausjonas
2023-04-11 14:34:32 +02:00
parent 7f577bb14a
commit 8ac19a6503
4 changed files with 8 additions and 0 deletions
+1
View File
@@ -196,6 +196,7 @@ public class Client : MonoBehaviour
NoPlayablePlayer script = player.AddComponent<NoPlayablePlayer>();
players[job.data[5]] = script;
script.client = this;
script.nextField = nextField;
script.dice = dice;
script.camera = cam;
@@ -14,6 +14,7 @@ public class NoPlayablePlayer : Player
private float speed = 5;
private float interPol = 0;
private int wurfelZahl = 0;
public Client client;
private bool wait = false;
private bool lastActivated = false;
@@ -38,6 +39,7 @@ public class NoPlayablePlayer : Player
activated = false;
diceScript = dice.GetComponent<Dice>();
AddItem(client.items[1]);
}
private void Start()
@@ -49,6 +49,8 @@ public class PlayablePlayer : Player
diceScript = dice.GetComponent<Dice>();
instance = this;
AddItem(client.items[1]);
}
public static PlayablePlayer GetCurrentInstance()