Exemplo n.º 1
0
 public override void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
 {
     killPosition  = position;
     killDirection = direction;
     killPower     = missile.GetPower();
     base.Damage(hitCollider, position, direction, missile);
 }
Exemplo n.º 2
0
 public override void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
 {
     killPosition = position;
     killDirection = direction;
     killPower = missile.GetPower();
     base.Damage(hitCollider, position, direction, missile);
 }
Exemplo n.º 3
0
 public virtual void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
 {
     if (IsLive)
     {
         ApplyDamage(missile.GetDamage(), missile.GetOwner());
         if (OnDamage != null)
             OnDamage(hitCollider, position, direction, missile.GetPower(), missile.GetDamage(), missile.GetOwner());
     }
 }
Exemplo n.º 4
0
 public virtual void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
 {
     if (IsLive)
     {
         ApplyDamage(missile.GetDamage(), missile.GetOwner());
         if (OnDamage != null)
         {
             OnDamage(hitCollider, position, direction, missile.GetPower(), missile.GetDamage(), missile.GetOwner());
         }
     }
 }
Exemplo n.º 5
0
 public override void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
 {
     killPosition = position;
     killDirection = direction;
     killPower = missile.GetPower();
     var damageAmount = missile.GetDamage();
     if (hitCollider == HeadCollider)
     {
         Debug.Log("HEADSHOT!");
         damageAmount *= 10f;
     }
     base.Damage(hitCollider, position, direction, killPower, damageAmount, missile.GetOwner());
 }
Exemplo n.º 6
0
    public override void Damage(Collider hitCollider, Vector3 position, Vector3 direction, Missile missile)
    {
        killPosition  = position;
        killDirection = direction;
        killPower     = missile.GetPower();
        var damageAmount = missile.GetDamage();

        if (hitCollider == HeadCollider)
        {
            Debug.Log("HEADSHOT!");
            damageAmount *= 10f;
        }
        base.Damage(hitCollider, position, direction, killPower, damageAmount, missile);
    }