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); }
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()); } }
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()); } } }
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()); }
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); }