Skip to content

Commit

Permalink
fixed beardface's dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-A00 committed Nov 27, 2020
1 parent 2726179 commit afef490
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ void Update()
continueButton.SetActive(true);
}

if(textDisplay.text == sentences[11])
if(textDisplay.text == sentences[10])
{
EndInstructions();
settings.puzzleEnabled = true;
}

if(textDisplay.text == sentences[11] && matcher.winCon == true)
if(textDisplay.text == sentences[10] && matcher.winCon == true)
{
WinText();
continueButton.SetActive(false);
}

if(textDisplay.text == sentences[16])
if(textDisplay.text == sentences[15])
{
popUp.SetActive(true);
dialogueBox.SetActive(false);
Expand All @@ -70,7 +70,7 @@ void Update()
}
}

if(textDisplay.text == sentences[19])
if(textDisplay.text == sentences[18])
{
EndDialogue();
}
Expand Down Expand Up @@ -101,15 +101,15 @@ public void EndInstructions()

public void EndDialogue()
{
if(textIndex == 19)
if(textIndex == 18)
{
//Destroy(dialogueBox);
dialogueBox.SetActive(false);
textIndex++;
audioIndex++;
StopAllCoroutines();
}
if (textIndex == 20)
if (textIndex == 19)
{
mapBtn.interactable = true;
invBtn.interactable = true;
Expand Down

0 comments on commit afef490

Please sign in to comment.