Made initial speed changeable from inspector

This commit is contained in:
Furentes
2019-04-12 22:13:49 +02:00
parent 83675b4191
commit c00eb37c77

View File

@ -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