Exemplo n.º 1
0
 public void CoroutineDamaging(int count, float damage, DamageType damageType, float time, UnityAction action = null)
 {
     CoroutineT.ForBefore
     (
         () =>
     {
         if (CanGetDamage)
         {
             Damage(damage, damageType);
             action?.Invoke();
         }
     },
         count,
         time
     ).Start(this);
 }