Пример #1
0
 // Update is called once per frame
 void Update()
 {
     switch (InfluenceType)
     {
     case InfluenceType.DamageOverTime:
         if (influenceStart)
         {
             timer += Time.deltaTime;
             if (timer > LoseHealthTime)
             {
                 timer = 0f;
                 dynamicHandle.ChangeHealth(-AmountOfLoseDamage);
             }
         }
         break;
     }
 }