Better Start Menu

This commit is contained in:
brausjonas committed 2023-01-28 02:44:27 +01:00
1 parent 00b0bf1d34
commit e5a90f519a
17 files changed
+1240 -60

No files matched your search

+3 -1
View File
@@ -34,6 +34,7 @@ public class Dice : MonoBehaviour
started = false;
CancelInvoke("RandomNumbers");
rb.angularVelocity = new Vector3(5, 5, 5);
rb.useGravity = true;
foreach (TMP_Text t in numbers)
@@ -45,8 +46,9 @@ public class Dice : MonoBehaviour
private void RandomNumbers()
{
int random = Random.Range(1, 7);
rb.angularVelocity = new Vector3(5, 5, 5);
foreach (TMP_Text t in numbers)
{
t.text = random.ToString();