void AlternateEndDelay() { PassageTextDisplay.text = ""; PassageText = CurrentPassage.GetContent(); _currentlyTyping = true; AlternateEndVisited = true; TDialogue.SetCurrentPassage(CurrentPassage); }
void Start() { TDialogue = TwineReader.Parse(DialogueFile); List <PassageNode> AlternateStarts = TDialogue.GetPassagesTagged(AlternateStartTag); //BranchData.Singleton.EnemiesKilled = 5; //Testing the alternate beginning. CurrentPassage = AlternateStarts.Count > 0 && BranchData.Singleton.EnemiesKilled >= EnemiesKilledThreshhold ? AlternateStarts[0] : TDialogue.StartPassage; TDialogue.SetCurrentPassage(CurrentPassage); PassageText = CurrentPassage.GetContent(); _currentlyTyping = true; _activatedCoRoutine = false; }