My door is supposed to open for a couple seconds then close. It opens fine but when it has to close it doesn’t rotate backwards it keeps going a full 360.

```
case DoorState.CLOSED:
{
Debug.Log(Quaternion.Angle(transform.rotation, Quaternion.Euler(0, 0, 0)));
if (Quaternion.Angle(transform.rotation, Quaternion.Euler(0, 0, 0)) > 1)
{
Debug.Log("BACKING UP");
transform.RotateAround(pivot.position, pivot.transform.up, Time.deltaTime * speed);
openTimer = openTime;
}
break;
}
case DoorState.BANGING:
{
break;
}
case DoorState.OPEN_IN:
{
if (Quaternion.Angle(transform.rotation, Quaternion.Euler(0, 90, 0)) > 1)
{
transform.RotateAround(pivot.position, pivot.transform.up, Time.deltaTime * speed);
openTimer = openTime;
}
else if(openTimer < 0)
{
state = DoorState.CLOSED;
} else
{
openTimer -= Time.deltaTime;
}
break;
}
```