public void Continue() { if (SubConversationIndex < ConversationContainer[ConversationIndex].Conversation.Count - 1) { SubConversationIndex++; if (Array.Exists(ConversationContainer[ConversationIndex].TriggerIndex, element => element.Equals(SubConversationIndex))) //check current list location to see if it is a trigger { TriggerScript.Play(TriggerIndex++); } NPCText.text = ConversationContainer[ConversationIndex].Conversation[SubConversationIndex++]; if (Array.Exists(ConversationContainer[ConversationIndex].TriggerIndex, element => element.Equals(SubConversationIndex))) //check current list location to see if it is a trigger { TriggerScript.Play(TriggerIndex++); } PlayerText.text = ConversationContainer[ConversationIndex].Conversation[SubConversationIndex]; } else //exit conversation { PlayerController.Current.StopTalking(); if (animator != null) { animator.SetBool("Talking", false); } cinematicCamera.enabled = false; mainCamera.enabled = true; if (ConversationContainer[ConversationIndex].NextConversationOnEnd) { TriggerNextConversation(); } } }