public void on_hit(Weapon with, DamageSystem.Type how) { Vector3 direction = transform.position - with.Holder.transform.position; direction.y = 0.0f; direction.Normalize(); rb.AddForce(direction, ForceMode.Impulse); FMODUnity.RuntimeManager.PlayOneShot(DamageEvent, transform.position); }
public void on_hit(Weapon with, DamageSystem.Type how) { }