im working on a 2d vertical platformer for a study project.
With this simple code i control the camera
transform.position.y = player.transform.position.y
Now i only want the camera to go up, so i can put a collider under the camera that kills the player.
How can i prevent the camera from goin down the y axis?