TO SQUASH: Lots of UI.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class CakeSpawner : MonoBehaviour
|
||||
public class CakeSpawner : Spawner
|
||||
{
|
||||
public GameObject cakePrefab;
|
||||
|
||||
@@ -31,7 +31,12 @@ public class CakeSpawner : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void FixedUpdate()
|
||||
{
|
||||
if (!spawned)
|
||||
if (!isSpawning)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!spawned )
|
||||
{
|
||||
spawnTimer += Time.fixedDeltaTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user