Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public void on_hit(Weapon with, DamageSystem.Type how)
 {
 }