This commit is contained in:
brausjonas
2023-04-15 00:19:07 +02:00
parent 7e9d715574
commit 95e4d9d0fd
11 changed files with 62 additions and 9 deletions
@@ -24,6 +24,8 @@ public class NoPlayablePlayer : Player
private Vector3 useLess = new Vector3();
private bool checkDoubleDice = false;
public TMP_Text textName;
//Animation:
private Vector3 lastPosAnim = Vector3.zero;
@@ -97,6 +99,7 @@ public class NoPlayablePlayer : Player
public void Wurfeln(int wurfelZahl)
{
textName.gameObject.SetActive(true);
diceScript.SetMaterial(0);
jumpRequest = true;
@@ -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)
{