So, myMy player is jumping on sticks, endlessly going upwards, and if he fallsthey fall, its gameoverit's game over.
I want the camera to follow Playerthe player only when he movesthey move up (onlyie. only on Y axis), not down... if he movesIf they move down (fallsfall) he, the character dies... Camera, and the camera does not follow down them (only up).
How do I implement this behaviour in a Unity C# script?