TestPush
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user