// Update is called once per frame
 void Update()
 {
     Timer = Timer + Time.deltaTime;
     if (Timer > SpawnTime)
     {
         Factory.CreateZombieRandom();
         Timer = 0;
     }
 }
Example #2
0
 //Creates our zombie factory and starts by spawning one zombie instantly
 void Start()
 {
     Factory = ZombieFactory.Instance;
     Factory.CreateZombieRandom();
     Timer = 0.0f;
 }