public bool StartDialogs(DialogBoxScriptableObject dialog = null, bool isTutorial = false) { if (dialog != null) { _thisDialogBoxScriptableObject = dialog; } if (!_dialogPlaying) { _dialogPlaying = true; if (isTutorial) { _tutorialDialog.SetActive(true); _tutorialDialogScript.StartAllDialogs(_thisDialogBoxScriptableObject); } else { _dialog.SetActive(true); _dialogScript.StartAllDialogs(_thisDialogBoxScriptableObject); } return(true); } return(false); }
public void StartAllDialogs(DialogBoxScriptableObject scriptableObject) { _timesPressedSkip = 0; _dialogPlaying = true; _currentDialogBox = 0; _currentScriptableObject = scriptableObject; StartNextDialogBox(); }