Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    public void StartAllDialogs(DialogBoxScriptableObject scriptableObject)
    {
        _timesPressedSkip        = 0;
        _dialogPlaying           = true;
        _currentDialogBox        = 0;
        _currentScriptableObject = scriptableObject;

        StartNextDialogBox();
    }