コード例 #1
0
    private IEnumerator Complete()
    {
        audioSource.Play();
        completed = true;

        isInUse = false;

        yield return(new WaitForSeconds(0.5f));

        lockCamera.enabled = false;
        yield return(new WaitForSeconds(0.2f));

        _userInventory.AddLockPicks(1);
        if (OnCompleted != null)
        {
            OnCompleted.Invoke();
        }

        door.Unlock();

        if (OnExit != null)
        {
            OnExit.Invoke();
        }

        door = null;
    }