/// <summary>Tries Progresses the dialogue by switching display if necessary and dislay the next line on screen. Returns false if the end of monologues has been reached.</summary> public bool Continue(AudableCharacterDisplay display, ref int indexAt) { indexAt++; if (indexAt == lines.Length) { return(false); } display.text = lines[indexAt]; return(true); }
/// <summary>Resets the dialogue state</summary> public void Restore() { display?.SetActive(false); display = null; }
public void SetupDisplay(AudableCharacterDisplay display) { this.display = display; this.display.sprite = character.DisplaySprite; }