I have this script that spawns enemies, but they only spawn once. So what I was wondering is if there is a way to add a timer or something into this script to make it so they will keep spawing. Here is the script.
#pragma strict
// Instantiates a prefab in a grid
var prefab : GameObject;
var gridX = 5;
var gridY = 5;
var spacing = 2.0;
function Start () {
for (var y = 0; y < gridY; y++) {
for (var x=0;x
↧