Ejemplo n.º 1
0
        protected override void OnTargetHit(Utility.IEntity affectedEntity)
        {
            affectedEntity.ModifyHealth(_damage);

            if (Random.Range(0.0f, 1.0f) <= _impactChance)
            {
                affectedEntity.ApplyForce(Transform.forward * ImpactPower);
            }
        }
Ejemplo n.º 2
0
        protected override void OnTargetHit(Utility.IEntity affectedEntity)
        {
            base.OnTargetHit(affectedEntity);

            affectedEntity.ApplyForce(Transform.forward * _impactPower);
        }