Exemplo n.º 1
0
 private void Start()
 {
     if (conversationChangeEvent == null)
     {
         conversationChangeEvent = new ConversationChangeEvent();
     }
     GetComponent <Button>().GetComponentInChildren <Text>().text = choice.text;
 }
Exemplo n.º 2
0
 private void Start()
 {
     //если нет события изменения разговора
     if (conversationChangeEvent == null)
     {
         //делаем новое событие изменения разговора
         conversationChangeEvent = new ConversationChangeEvent();
     }
     //передаем значение в кнопку из дочернего компонента кнопки Текст - текст в кнопку
     GetComponent <Button>().GetComponentInChildren <Text>().text = choice.text;
 }