private IEnumerator nextText() { videos[1].Play(); string finalText = ""; if (LanguageSwitch.language == LanguageSwitch.Language.Japanese || LanguageSwitch.language == LanguageSwitch.Language.English) { finalText = conversationController.sentences[conversationController.currentSentenceNum].TextOutPut().Replace(" ", "\n\n"); } else { finalText = conversationController.sentences[conversationController.currentSentenceNum].TextOutPut().Replace(" ", "\n"); } while (conversationController.Text.text != finalText) { yield return(null); } conversationController.StopAll(); conversationController.currentSentenceNum = 3; }
private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player") || other.CompareTag("Ground")) { flagManager.velXFixed = true; //ぐるりんの動きを止める flagManager.moveStop = true; //GameControllerを非表示にする flagManager.pressParm = false; conversationController.IsConversation = true; if (num == 1) { conversationController.preSentenceNum--; } else if (num == 2) { conversationController.StopAll(); conversationController.currentSentenceNum++; } vcamChange = true; } }