예제 #1
0
    // DEPRECATED
    public void Resume(int newAge)
    {
        int i;

        // Asign the new Age
        age = newAge;

        // Make the menu UI invisible
        controllerUI.SetActive(false);

        // Resume the game time
        Time.timeScale = 1f;

        ageMenuIsActive = false;

        ageDisplay.GetComponent <AgeDisplay>().UpdateDisplay(age);

        // Turn off Special Mode if activated
        modeController.deactivateSpecialMode();

        //Cursor.lockState = CursorLockMode.Locked;
        //Cursor.lockState = CursorLockMode.None;

        // Lock the mouse again
        FPC.GetComponent <UnityStandardAssets.Characters.FirstPerson.FirstPersonController> ().m_MouseLook.m_cursorIsLocked = true;
    }