public void Start()
 {
     if (TransitionManager.GetInstance != null)
     {
         myDeliveryType = TransitionManager.GetInstance.optionController.dialogueControl.deliveryType;
         mesgSpeed      = TransitionManager.GetInstance.optionController.dialogueControl.curDialogueSpeed;
     }
 }
        public void UpdateDialogueMechanics(DialogueDeliveryType deliveryType, float newSpeed)
        {
            myDeliveryType = deliveryType;
            mesgSpeed      = newSpeed;

            if (speechList != null && speechList.Count > 0)
            {
                for (int i = 0; i < speechList.Count; i++)
                {
                    speechList[i].deliveryType      = myDeliveryType;
                    speechList[i].intervalPerLetter = mesgSpeed;
                }
            }
        }
Exemple #3
0
    public void UpdateInitialSlides()
    {
        deliveryType = (DialogueDeliveryType)optionDropdown.value;
        if (deliveryType == DialogueDeliveryType.EnterAfterEachSpeech)
        {
            mesgText.allowMesgControl = true;
        }
        else
        {
            mesgText.allowMesgControl = false;
        }
        speedSlider.maxValue       = maxDialogueSpeed;
        curDialogueSpeed           = speedSlider.value;
        mesgText.intervalPerLetter = curDialogueSpeed;
        mesgText.deliveryType      = deliveryType;

        if (DialogueManager.GetInstance != null)
        {
            DialogueManager.GetInstance.UpdateDialogueMechanics(deliveryType, curDialogueSpeed);
        }
    }