Answers for "how do i limit the amount of prefabs in unity using c# script"

C#
0

how do i limit the amount of prefabs in unity using c# script

int maxEnemy = 50; int enemyCount = 0;  void Spawn() {     if(enemyCount >= maxEnemy) return;     // Instantiate     enemyCount++; }
Posted by: Guest on January-26-2020
0

how do i limit the amount of prefabs in unity using c# script

CancelInvoke("Spawn");
Posted by: Guest on January-26-2020

Code answers related to "how do i limit the amount of prefabs in unity using c# script"

C# Answers by Framework

Browse Popular Code Answers by Language