From c00eb37c7723e11973418784ec061a51c55c1851 Mon Sep 17 00:00:00 2001 From: Furentes Date: Fri, 12 Apr 2019 22:13:49 +0200 Subject: [PATCH] Made initial speed changeable from inspector --- Assets/Scripts/Spawner.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Spawner.cs b/Assets/Scripts/Spawner.cs index 7c5a54e..86c80b9 100644 --- a/Assets/Scripts/Spawner.cs +++ b/Assets/Scripts/Spawner.cs @@ -12,11 +12,12 @@ public class Spawner : MonoBehaviour public TextMeshProUGUI score; public TextMeshProUGUI overText; public bool over = false; + public float fallSpeed = 1.0f; // Constructor (called when game starts) void Start() { - Group.fallSpeed = 1f; + Group.fallSpeed = fallSpeed; Grid.count = 0; score.text = "Score: " + Grid.count; // Spawn initial group