public void Pause() { pauseSettings?.SaveSettings(); PauseSettings.PauseConfiguration.ApplySettings(); onPause = true; }
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()); }