public void Update() { if (timer < tickTime) { timer += Time.deltaTime; return; } else { if (healthManager != null) { float damages = Random.Range(minTickDamages, maxTickDamages); healthManager.AddDamage(damages); } timer = 0.0f; } }
public void Update() { if (timer < tickTime) { timer += Time.deltaTime; return; } else { if (healthManager != null) { float damages = Random.Range(minTickDamages, maxTickDamages); healthManager.AddDamage(damages); } timer = 0.0f; } }