game: simplify if expr for OpenDoor()
This commit is contained in:
parent
327d51a7e3
commit
15ac78b26a
|
@ -96,10 +96,7 @@ private IEnumerator OpenDoor()
|
|||
{
|
||||
currentDuration = 0;
|
||||
_opening = false;
|
||||
if (_isOpen)
|
||||
_isOpen = false;
|
||||
else
|
||||
_isOpen = true;
|
||||
_isOpen = !_isOpen;
|
||||
}
|
||||
|
||||
yield return new WaitForEndOfFrame();
|
||||
|
|
Reference in a new issue