IEnumerator HackingMinigame() { SetPlayerActive(false); botToHack.CurrentPersonality = BotController.Personality.FREEZE; botToHack.soundMaster.PlayPanelSound(); botToHack.soundMaster.StopLoop(); // set up screen botHackScreen.player = inventory; botHackScreen.bot = botToHack.inventory; firstPersonController.m_MouseLook.SetCursorLock(false); botHackScreen.gameObject.SetActive(true); botHackScreen.Startup(); while (botHackScreen.gameObject.activeSelf) { yield return(null); } botToHack.GetComponent <PersonalityInterpreter>().Reinterpret(); botToHack.PlayVocal(); firstPersonController.m_MouseLook.SetCursorLock(true); SetPlayerActive(true); }