Better Dice System

This commit is contained in:
brausjonas
2023-04-01 01:43:28 +02:00
parent 69e58816a1
commit 965690ab95
11 changed files with 57 additions and 40 deletions
@@ -149,6 +149,7 @@ public class PlayablePlayer : Player
//delay
if (Time.time - timeSinceWurfeln > 2)
{
dice.SetActive(false);
InterPolerate();
}
}
@@ -344,6 +345,7 @@ public class PlayablePlayer : Player
public void StartDice()
{
gameObject.SetActive(true);
//start the dice
dice.transform.position = Vector3.SmoothDamp(dice.transform.position,
transform.position + Vector3.up * 3f, ref useLess, 0.2f);