Esempio n. 1
0
    public void Pause()
    {
        pauseSettings?.SaveSettings();

        PauseSettings.PauseConfiguration.ApplySettings();

        onPause = true;
    }
Esempio n. 2
0
    public void WriteMessage(string message)
    {
        if (pauseSettings == null)
        {
            pauseSettings = new PauseSettings();
        }

        pauseSettings.SaveSettings();

        messageText.text = "";
        messageObject.SetActive(true);

        textWritter.myText = messageText;
        textWritter.WriteText(message);
        PlayerManager.Instance.Pause();

        StartCoroutine(WaitUntilWrittingEnd());
    }