private void OnTriggerExit2D(Collider2D collision) { Shooting shooting = collision.GetComponentInChildren <Shooting>(); if (shooting != null) { shooting.Rearm(); } }