private void OnEnable()
 {
     cooldown = new Cooldown();
     cooldown.ChangeDuration(startDuration.Value);
 }
 public void ChangeDuration(float newDuration)
 {
     cooldown.ChangeDuration(newDuration);
 }
Example #3
0
 void Start()
 {
     spawnCooldown.ChangeDuration(frequency);
     poolManager = FindObjectOfType <PoolManager>();
     prefabPool  = poolManager.AddPool(prefab);
 }