IEnumerator StartSpeechCroutine(SpeechScriptableObjects speech) { while (speechInProgress) { yield return(null); } speechInProgress = true; nPCAnswerSpeech = speech; }
void LoadRight() { playerAnswerTree = ray.hitObj.GetComponent <NPCDialogue>().playerRightSpeechTree; playerAnswer = playerAnswerTree.dailyScripts[gm.dayCount]; textManager.playerAnswer = playerAnswer; npcAnswerTree = ray.hitObj.GetComponent <NPCDialogue>().nPCRightSpeechTree; npcAnswer = npcAnswerTree.dailyScripts[npcAnswerTree.dayCount]; textManager.nPCAnswerSpeech = npcAnswer; image.texture = npcAnswer.drugSprite; }
IEnumerator StartPlayerLeftSpeechCroutine(SpeechScriptableObjects playerSpeech) { while (playerSpeechInProgress) { yield return(null); } playerSpeechInProgress = true; playerAnswer = playerSpeech; currentPlayerSpeechIndex = 0; FillPlayerRightSpeech(); }
public void StartSpeech(SpeechScriptableObjects speech) { StartCoroutine(StartSpeechCroutine(speech)); }
public void StartPlayerRightSpeech(SpeechScriptableObjects playerSpeech) { StartCoroutine(StartPlayerRightSpeechCroutine(playerSpeech)); }