private void OnTriggerStay(Collider other) { if (!other.isTrigger) { ap.Dodamage(other.gameObject); } }
private void OnCollisionEnter(Collision collision) { ap.Dodamage(collision.gameObject, damange, true); Destroy(gameObject); }