void OnCollisionExit2D(Collision2D other) { if (other.gameObject.CompareTag("Brick")) { // Destroy(other.gameObject); brickC = other.gameObject.GetComponent <BrickController>(); brickC.DestroyBrick(); } }