Stuff
This commit is contained in:
@@ -33,6 +33,8 @@ public class PlayablePlayer : Player
|
||||
public Client client;
|
||||
|
||||
private static PlayablePlayer instance;
|
||||
|
||||
public TMP_Text textName;
|
||||
|
||||
//Animation:
|
||||
private Vector3 lastPosAnim = Vector3.zero;
|
||||
@@ -51,8 +53,6 @@ public class PlayablePlayer : Player
|
||||
diceScript = dice.GetComponent<Dice>();
|
||||
|
||||
instance = this;
|
||||
|
||||
AddItem(client.items[2]);
|
||||
}
|
||||
|
||||
public static PlayablePlayer GetCurrentInstance()
|
||||
@@ -99,6 +99,7 @@ public class PlayablePlayer : Player
|
||||
{
|
||||
if (!Physics.Raycast(new Vector3(Input.mousePosition.x, Input.mousePosition.y, -200), Vector3.forward))
|
||||
{
|
||||
textName.gameObject.SetActive(true);
|
||||
DiceRollRoutine();
|
||||
}
|
||||
}
|
||||
@@ -114,7 +115,7 @@ public class PlayablePlayer : Player
|
||||
jumpRequest = true;
|
||||
|
||||
wurfelt = true;
|
||||
wurfelZahl = Random.Range(1, 7);
|
||||
wurfelZahl = Random.Range(4, 5);
|
||||
|
||||
switch (activeItem)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user