public void StartConversation(GameObject sender, ConversationList.Characters character, ConversationList.Conversations conversation) { Reset(); currentCharacter = character; currentConversation = conversation; StartCoroutine(_ActiveConversation(sender, character, conversation)); }
IEnumerator _ActiveConversation(GameObject sender, ConversationList.Characters character, ConversationList.Conversations conversation) { while (pageIndex < currentConversation.pages.Count) { textBox.text = ""; yield return(null); } CloseConversation(); }
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(); }
void Start() { characterInfo = conversationList.characters [id]; StartChat(); }