Beispiel #1
0
    IEnumerator StartSpeechCroutine(SpeechScriptableObjects speech)
    {
        while (speechInProgress)
        {
            yield return(null);
        }

        speechInProgress = true;
        nPCAnswerSpeech  = speech;
    }
Beispiel #2
0
    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;
    }
Beispiel #3
0
    IEnumerator StartPlayerLeftSpeechCroutine(SpeechScriptableObjects playerSpeech)
    {
        while (playerSpeechInProgress)
        {
            yield return(null);
        }

        playerSpeechInProgress = true;
        playerAnswer           = playerSpeech;

        currentPlayerSpeechIndex = 0;
        FillPlayerRightSpeech();
    }
Beispiel #4
0
 public void StartSpeech(SpeechScriptableObjects speech)
 {
     StartCoroutine(StartSpeechCroutine(speech));
 }
Beispiel #5
0
 public void StartPlayerRightSpeech(SpeechScriptableObjects playerSpeech)
 {
     StartCoroutine(StartPlayerRightSpeechCroutine(playerSpeech));
 }