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
@@ -25,8 +25,6 @@ public class NoPlayablePlayer : Player
private bool checkDoubleDice = false;
public TMP_Text textName;
//Animation:
private Vector3 lastPosAnim = Vector3.zero;
private bool jumpRequest = false;
@@ -40,6 +38,8 @@ public class NoPlayablePlayer : Player
activated = false;
diceScript = dice.GetComponent<Dice>();
nameSign = playerTexts[1].gameObject;
}
private void Start()
@@ -99,7 +99,6 @@ public class NoPlayablePlayer : Player
public void Wurfeln(int wurfelZahl)
{
textName.gameObject.SetActive(true);
diceScript.SetMaterial(0);
jumpRequest = true;
@@ -159,6 +158,7 @@ public class NoPlayablePlayer : Player
//delay
if (Time.time - timeSinceWurfeln > 2)
{
nameSign.SetActive(true);
dice.SetActive(false);
InterPolerate();
}