示例#1
0
        IEnumerator SearchPlayerInLocker(DoorController locker)
        {
            searchingLocker = true;
            locker.OpenLocker(_player);
            yield return(new WaitForSeconds(2));

            searchingLocker = false;
            locker.CloseLocker(_player);
            _lockerManager.NumerSearchingLockers--;
            _currentLocker = null;
            CancelSearching();
        }