// if the key has been found private void KeyFound() { // update the objective handlerUI.UpdateObjective(objectives[2]); // make sure the managers door can be unlocked managersDoor.SetCanUnlock(true); // if the player has initiated conversation with the manager if (dialogueController.GetCurrentNPC().GetItemName().ToUpper() == "MANAGER") { talkingToManager = true; } // if the player has initiated conversation with the manager // update the obejctive, fade the screen to the outro and disable player controls if (talkingToManager == true) { currentObjectiveState = ObjectiveState.Finish; screenFader.gameObject.SetActive(true); narrativeDialogue.StartOutroNarrative(); fpsController.enabled = false; } }