This commit is contained in:
brausjonas
2023-01-24 22:27:56 +01:00
parent 08d8c3b7e5
commit 4127dbaaac
5 changed files with 53 additions and 179 deletions
+1 -2
View File
@@ -35,7 +35,6 @@ public class Dice : MonoBehaviour
CancelInvoke("RandomNumbers");
rb.useGravity = true;
rb.angularVelocity = new Vector3(Random.Range(5, 10), Random.Range(5, 10), Random.Range(5, 10));
foreach (TMP_Text t in numbers)
{
@@ -47,7 +46,7 @@ public class Dice : MonoBehaviour
{
int random = Random.Range(1, 7);
rb.angularVelocity = new Vector3(Random.Range(5, 10), Random.Range(5, 10), Random.Range(5, 10));
rb.angularVelocity = new Vector3(5, 5, 5);
foreach (TMP_Text t in numbers)
{
t.text = random.ToString();