Small Stuff:)

This commit is contained in:
brausjonas
2023-04-15 00:31:36 +02:00
parent 95e4d9d0fd
commit b638de4b06
11 changed files with 17 additions and 17 deletions
@@ -34,7 +34,6 @@ public class PlayablePlayer : Player
private static PlayablePlayer instance;
public TMP_Text textName;
//Animation:
private Vector3 lastPosAnim = Vector3.zero;
@@ -53,6 +52,8 @@ public class PlayablePlayer : Player
diceScript = dice.GetComponent<Dice>();
instance = this;
nameSign = playerTexts[1].gameObject;
}
public static PlayablePlayer GetCurrentInstance()
@@ -99,7 +100,6 @@ public class PlayablePlayer : Player
{
if (!Physics.Raycast(new Vector3(Input.mousePosition.x, Input.mousePosition.y, -200), Vector3.forward))
{
textName.gameObject.SetActive(true);
DiceRollRoutine();
}
}
@@ -115,7 +115,7 @@ public class PlayablePlayer : Player
jumpRequest = true;
wurfelt = true;
wurfelZahl = Random.Range(4, 5);
wurfelZahl = Random.Range(1, 7);
switch (activeItem)
{
@@ -160,6 +160,7 @@ public class PlayablePlayer : Player
//delay
if (Time.time - timeSinceWurfeln > 2)
{
nameSign.SetActive(true);
dice.SetActive(false);
InterPolerate();
}