Esempio n. 1
0
 public static void ApplyDoT(this HealthComponent victim, GameObject attacker, DotController.DotIndex dotIndex, Single duration = 8f, Single damageMultiplier = 1f)
 {
     if (NetworkServer.active)
     {
         DotController.InflictDot(victim.gameObject, attacker, dotIndex, duration, damageMultiplier);
     }
     else
     {
         new DoTMessage(victim.gameObject, attacker, dotIndex, duration, damageMultiplier).Send(NetworkDestination.Server);
     }
 }
Esempio n. 2
0
 public void OnRecieved() => DotController.InflictDot(this.victim, this.attacker, this.dotIndex, this.duration, this.damageMultiplier);