mirror of
https://github.com/p08dev/Tetrys.git
synced 2026-06-19 13:13:50 +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 score;
|
||||||
public TextMeshProUGUI overText;
|
public TextMeshProUGUI overText;
|
||||||
public bool over = false;
|
public bool over = false;
|
||||||
|
public float fallSpeed = 1.0f;
|
||||||
|
|
||||||
// Constructor (called when game starts)
|
// Constructor (called when game starts)
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
Group.fallSpeed = 1f;
|
Group.fallSpeed = fallSpeed;
|
||||||
Grid.count = 0;
|
Grid.count = 0;
|
||||||
score.text = "Score: " + Grid.count;
|
score.text = "Score: " + Grid.count;
|
||||||
// Spawn initial group
|
// Spawn initial group
|
||||||
|
|||||||
Reference in New Issue
Block a user