public void ActivateDialogueSequence() { if (transform.childCount > 0) { LevelDialogue l = this.transform.GetChild(0).GetComponent <LevelDialogue>(); l.done.AddListener(DoneListener); l.StartDialogue(); } }
private string[] GetDialogue(int currentStar, LevelDialogue dialogue) { switch (currentStar) { default: case 0: case 1: return(dialogue.Star1 ?? null); case 2: return(dialogue.Star2 ?? null); case 3: return(dialogue.Star3 ?? null); } }