Skip to content

Commit 239130b

Browse files
authored
Update BlockSpawner.cs
1 parent 7e75e5a commit 239130b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

BlockSpawner.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using UnityEngine;
44

5-
public class BlockSpawner : MonoBehaviour
5+
public class BlockSpawner : MonoBehaviour //"BlockSpawner" MUST match the name of the script you created for the spawner 'empty' for the code to work!
66
{
77
public GameObject[] Tetrominoes;
88

@@ -16,4 +16,3 @@ public void NewTetromino()
1616
Instantiate(Tetrominoes[Random.Range(0, Tetrominoes.Length)], transform.position, Quaternion.identity);
1717
}
1818
}
19-

0 commit comments

Comments
 (0)