static public void WriteText(Character character) { int i = character.iCounter; string characterName = character.name; Debug.Log(characterName); int b; Debug.Log("StageCounter: " + character.StageCounter); Debug.Log("ConversationStages: " + character.conversationStages.Count); if (character.StageCounter < character.conversationStages.Count) { b = character.StageCounter; } else { b = character.conversationStages.Count - 1; } List <Line> lines = character.conversationStages[b].xList; string startingMainTextBody = lines[i].lineText; ConversationChecker.CheckSpecialMainTextOptions(startingMainTextBody, characterName); int j; for (j = 0; j < lines[i].xList.Count; j++) { string startingButtonText = lines[i].xList[j].replyText; ConversationChecker.CheckSpecialButtonOptions(startingButtonText, character); } ConversationSequencer.iCounterUp(character); }
public void ChoiceSelect() { DestroyButtons(); if (isEnding == false) { ConversationSequencer.WriteText(conversor); } else { ExitConversationMode(conversor); } }
public void EnterConversationMode(Character character) { Debug.Log("Conversation Entered"); if (OnConversation != null) { OnConversation(); } GameManager.Instance.CurrentState = GameManager.GameState.ConversationMode; ConversationCanvas.Instance.MakeActive(); //Instantiator.Instance.GetNewT<CharacterCamera>(characterCam); //CharacterCamera.Instance.CheckPosition(characterName: character.gameObject.name); character.PrepareCharachterForConversation(); conversor = character; ConversorsName = character.name; ConversationSequencer.StartDialogue(character); }