The camera in the Player2D class wasn't accessible.