TO SQUASH: Lots of UI.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class MultiplierSpawner : MonoBehaviour
|
||||
public class MultiplierSpawner : Spawner
|
||||
{
|
||||
public GameObject multiplierPrefab;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class MultiplierSpawner : MonoBehaviour
|
||||
{
|
||||
spawnTimer += Time.fixedDeltaTime;
|
||||
|
||||
if (spawnTimer >= 1f && isActive)
|
||||
if (spawnTimer >= 1f && isActive && isSpawning)
|
||||
{
|
||||
spawnTimer = 0f;
|
||||
if (Random.value < spawnProbability)
|
||||
|
||||
Reference in New Issue
Block a user