Пример #1
0
        public void Initialize(SO_DialogStructure _inputData, DialogueManager _manager, Language _targetLanguage)
        {
            dialogueManager = _manager;
            speachData      = _inputData as SO_SpeachStructure;

            textTitle.text   = speachData.GetSpeachTitle(_targetLanguage);
            textBody.text    = speachData.GetSpeachBody(_targetLanguage);
            speakerName.text = speachData.GetSpeakerName();

            spekerImage.sprite = speachData.GetSpeakerSprite();

            // al pulsar siguiente vamos a la siguiente estructura
            nextButton.onClick.AddListener(OnNextButtonClick);
        }
Пример #2
0
        private void DrawBody(Language previewLanguage)
        {
            string text;

            text = structure.GetSpeachBody(previewLanguage);

            GUILayout.Label("Body: ");

            if (text != default)
            {
                GUILayout.TextArea(text);
            }
            else
            {
                GUILayout.Label(" NOT FOUND ");
            }
        }