Skip to content
Snippets Groups Projects
Commit 24667dd4 authored by Fahrian Afdholi's avatar Fahrian Afdholi
Browse files

refactor: mob spawner

parent 6303b26d
Branches
Tags
No related merge requests found
using TMPro;
using UnityEngine;
//TODO: add game over controller
......@@ -8,6 +9,7 @@ public class Level02Controller : MonoBehaviour
public GameObject finalBox;
public GameObject finalGate;
public TMP_Text missionText;
// Start is called before the first frame update
void Start()
......
......@@ -67,7 +67,7 @@ public class MobSpawner : MonoBehaviour
void FixedUpdate()
{
if (currentMobs >= maxMobs) return;
if (currentMobs > maxMobs) return;
spawnTimer += Time.deltaTime;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment