Hi,
in my game player bounces upward in y axis and camera follows the player as it bounces up in y axis. But i want my camera to follow the player only when it bounces up but remain static when the player bounces down. here is the script i have used till now.
public Transform player;
// Update is called once per frame
void Update () {
transform.position = new Vector3 (transform.position.x,player.position.y, transform.position.z);
}
}