private void SpawnBlocks() { spawner.SpawnNext(); activeBlocks.Items.ForEach(block => { block.transform.parent = control.transform; block.gameObject.SetActive(true); blocks.Add(block); }); spawner.SetNext(); }
public void Restart() { spawner.SetNext(); CurrentState = firstState; }