Exemplo n.º 1
0
 private void Update()
 {
     // var f = spawningSpeedCurve.Evaluate(spawnersManager.CurrentSpawned / (float) spawnersManager.TotalPool);
     // f = Mathf.Clamp(f, 0, 1);
     // timer -= Time.deltaTime * respawnSpeed * f;
     if (timer > 0)
     {
         return;
     }
     timer = baseRespawnTime;
     spawnersManager.SpawnMany(1);
 }
Exemplo n.º 2
0
 private void OnEclipseStart_Listener(object o)
 {
     // TODO: some Fadein effect??
     spawnersManager.SpawnMany(RandomAmountToSpawn);
 }