Exemplo n.º 1
0
    public void handlePlayerSleep()
    {
        taskManager.checkTasks();

        DayNightController.freezeTime();

        recapManager.setInitialConfiguartion();

        recapPlane.gameObject.SetActive(true);
        minimapPanel.gameObject.SetActive(false);
        recapManager.startTyping();

        miiSoundSource.Play();

        playerInControl = false;

        showMouse();

        foreach (Transform child in bed.transform)
        {
            if (child.name.Equals("NextToBed"))
            {
                transform.position = child.position;
            }
        }
    }