Esempio n. 1
0
    public void FocusOnDialog()
    {
        if (sequenceId == "rebel")
        {
            int count = 0;
            count += gameManager.peasant1 ? 1 : 0;
            count += gameManager.peasant2 ? 1 : 0;
            count += gameManager.peasant3 ? 1 : 0;
            if (count < 2)
            {
                sequenceId     = "rebellose";
                dialogSequence = gameManager.dialogModel.GetSequenceById(sequenceId);
                dialogFlow     = dialogSequence.GetDialogFlow();
                totalOfDialogs = dialogFlow.Count;
            }
        }



        dialogCanvasController.SetActive(true);
        //playerObject.GetComponent<PlayerBehavior>().AddInteractionDisabler(triggerId);
        playerController.deactivateCharacter();
        currentState = DialogBoxStates.SendText;
        if (playableDirector != null)
        {
            playableDirector.Pause();
        }
    }