Example #1
0
    private void FixedUpdate()
    {
        if (NumberOfSpawn >= spawnLimit)
        {
            spawnerType = SPAWNER_TYPE.Single;
        }

        if (spawnerType == SPAWNER_TYPE.Plus)
        {
            if (Time.time >= currentTime)
            {
                Spawn(this.gameObject);
                AddCurrentTime();
            }
        }
    }
Example #2
0
 public void DoSpawn()
 {
     NumberOfSpawn = 0;
     spawnerType   = Spawner.SPAWNER_TYPE.Plus;
 }