Пример #1
0
        private IEnumerator DialogueSequence()
        {
            GlobalInstanceManager.GetStateManager().CanMove = false;
            SpeechBubbleManager main = GlobalSpeechManager.GetSpeechBubbleManager("Main");
            SpeechAlign         oldNpcSpeechAlign  = _speechBubbleManager.speechAlign;
            SpeechAlign         oldMainSpeechAlign = main.speechAlign;

            _speechBubbleManager.speechAlign = npcSpeechAlign;
            main.speechAlign = mainSpeechAlign;

            GlobalInstanceManager.GetCameraManager().FocusOnCharacter(characterName);
            yield return(GetComponent <IDialogue>()
                         .GetDialogue(_speechBubbleManager, GlobalSpeechManager.GetSpeechBubbleManager("Main")));

            GlobalInstanceManager.GetCameraManager().FocusOnCharacter();

            GlobalInstanceManager.GetStateManager().CanMove = true;
            interactionManager.Refresh();
            _speechBubbleManager.speechAlign = oldNpcSpeechAlign;
            main.speechAlign = oldMainSpeechAlign;
            gameObject.transform.parent.GetComponentInChildren <InteractionManager>().SetCanvasActiveStatus(true);
        }
Пример #2
0
 public void Start()
 {
     _speechBubbleManager            = GetComponentInChildren <SpeechBubbleManager>();
     _speechBubbleManager.popupColor = popupColor;
     _speechBubbleManager.textColor  = textColor;
 }