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