示例#1
0
        public void CloseDoor()
        {
            if (DoorLocked)
            {
                return;
            }

            VanishDoor(false);
            _doorSound?.PlayCloseDoor();
        }
示例#2
0
        public void CloseDoor()
        {
            if (DoorLocked || !_doorState)
            {
                return;
            }

            _doorControl = false;
            _doorMoving  = true;
            _doorState   = false;
            _doorSound?.PlayCloseDoor();
        }