예제 #1
0
    private void OnCollisionEnter(Collision other)
    {
        ObjectParameter op = other.collider.GetComponent <ObjectParameter>();

        if (op != null)
        {
            op.takeDamage(arrowDamage);
        }

        Destroy(gameObject);
    }
 public override void Interact()
 {
     op.takeDamage(damage);
 }