///<inheritdoc/>
 public void Damage(DamageInfo damageInfo)
 {
     HP -= damageInfo.damage;
 }
Beispiel #2
0
        ///<inheritdoc/>
        public void Set(List <TrajectoryPoint> path, float explosionTime, float explosionRadius, DamageInfo damageInfo, Trigger.TriggerSettings triggerSettings)
        {
            this.path            = path.ConvertAll(x => x.point).ToList();
            flightTime           = path[path.Count - 1].time;
            this.explosionTime   = explosionTime;
            this.damageInfo      = damageInfo;
            this.explosionRadius = explosionRadius;
            this.triggerSettings = triggerSettings;
            time = 1;

            pointsWeight = Utils.GetPointsWeight(this.path, Utils.GetPathDistance(this.path));
        }
Beispiel #3
0
 ///<inheritdoc/>
 public abstract void Damage(DamageInfo damageInfo);
 /// <summary>
 /// Send damage to the ragdoll root.
 /// </summary>
 public void Damage(DamageInfo damageInfo)
 {
     root.Damage(damageInfo);
 }