diff --git a/RunningLateGame/Assets/Scripts/Door.cs b/RunningLateGame/Assets/Scripts/Door.cs index ec00399..d257dfa 100644 --- a/RunningLateGame/Assets/Scripts/Door.cs +++ b/RunningLateGame/Assets/Scripts/Door.cs @@ -96,10 +96,7 @@ private IEnumerator OpenDoor() { currentDuration = 0; _opening = false; - if (_isOpen) - _isOpen = false; - else - _isOpen = true; + _isOpen = !_isOpen; } yield return new WaitForEndOfFrame();