Example #1
0
 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;
     }
 }