Setting up the camera & boundary limitations for a sidescroller

we are making a Sidescroller too.
What we are doing is moving on z when onlanded Event is fired or if the player leaves the safe area.