Пример #1
0
 public void RenderNextFrame()
 {
     textScroller.SetText(conversation.lines[currentConversation], text);
     if (currentConversation == 0)
     {
         mugshot_r.enabled        = true;
         mugshot_animator.enabled = true;
         mugshot_r.sprite         = conversation.mugshots[currentConversation];
     }
     else
     {
         mugshot_r.enabled        = false;
         mugshot_animator.enabled = false;
     }
 }
Пример #2
0
    public void beginConversation(DateableCharacter speaker)
    {
        myUIManager.activateDialogueOptionsUI();
        List <string> greetingTags = new List <string>();

        greetingTags.Add("greeting");
        if (speaker.acceptanceLevel < 0)
        {
            greetingTags.Add("annoyed");
        }
        dialogueTextScroller.SetText(myDialogueManager.getDialogueForTags(greetingTags).dialogueContent);
        this.currentConversation         = this.gameObject.AddComponent <Conversation>();
        this.currentConversation.speaker = speaker;
    }