I have been searching for many methods on how to do my camera distance gets lower, 6 to 4, 4 to 2 and if the distance gets 2 and I press the button again, it gets 6.

But it does’nt work

when I do this

```
if (distance == 6)
{
if (Input.GetKeyDown("v"))
{
distance = 4;
}
}
```

the distance gets to 4

then here’s the problem

if I do this

```
if (distance == 6)
{
if (Input.GetKeyDown("v"))
{
distance = 4;
}
}
if (distance == 4)
{
if (Input.GetKeyDown("v"))
{
distance = 2;
}
}
if (distance == 2)
{
if (Input.GetKeyDown("v"))
{
distance = 6;
}
}
```

it is always going to get 6 because when I press v, it gets to 4 then 2 then 6 again

how can I solve this?