示例#1
0
 public void StartConversation(GameObject sender, ConversationList.Characters character, ConversationList.Conversations conversation)
 {
     Reset();
     currentCharacter    = character;
     currentConversation = conversation;
     StartCoroutine(_ActiveConversation(sender, character, conversation));
 }
示例#2
0
    IEnumerator _ActiveConversation(GameObject sender, ConversationList.Characters character, ConversationList.Conversations conversation)
    {
        while (pageIndex < currentConversation.pages.Count)
        {
            textBox.text = "";

            yield return(null);
        }

        CloseConversation();
    }
示例#3
0
    public void AddCharacter()
    {
        ConversationList.Characters c = new ConversationList.Characters();
        c.name     = inputName;
        c.uniqueId = System.Guid.NewGuid().ToString();
        conversationList.characters.Add(c);

        //Jump index
        characterIndex = conversationList.characters.Count - 1;
        _character     = conversationList.characters [characterIndex];

        Deselect();
    }
示例#4
0
 void Start()
 {
     characterInfo = conversationList.characters [id];
     StartChat();
 }