mirror of
https://github.com/p08dev/Tetrys.git
synced 2026-06-19 05:03:49 +02:00
Made initial speed changeable from inspector
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user