public void LoadPassage(StoryPassage goTo) { currentPassage = goTo; option1Button.enabled = false; option2Button.enabled = false; optionBox1.text = ""; optionBox2.text = ""; readingLines = true; currentLine = 0; mainBox.text = goTo.lines[0]; if (goTo.option1.goTo) { option1On = true; } else { option1On = false; } if (goTo.option2.goTo) { option2On = true; } else { option2On = false; } }
private void OnPassageDone(StoryPassage passage) { if (_printedPassage != passage) { _printedPassage = passage; _ctx.twineStoryView.StartCoroutinePrinting(_fullPassageText, 0.05f); _passageHistory.StoryVars = UpdateVarsDictionary(); } }
public void OnPassageEnter(StoryPassage passage) { _ctx.analitics.SendCurrentPassage(passage.Name); CheckSpecificPassage(passage); _fullPassageText = ""; _passageHistory.AddToHistory(passage.Name); _ctx.twineStoryView.CleanText(); foreach (Button button in _optionsButtons) { button.gameObject.SetActive(false); } }
private void CheckSpecificPassage(StoryPassage passage) { if (passage.Name == "beemoGoToRunTutorial") { _ctx.analitics.SendStoryTutorialPassed(); } /* * Проверка, нужно ли отображать кнопку * "Добыть монеты" для перехода в раннер * В ранних пассажах её необходимо скрывать */ if (_passageWithoutRunButton.TryGetValue(passage.Name, out _)) { _ctx.needStartRunButton?.SetValueAndForceNotify(false); } else { _ctx.needStartRunButton?.SetValueAndForceNotify(true); } }
void Story_OnPassageEnter(StoryPassage passage) { Clear(); }
private void Story_OnPassageExit(StoryPassage obj) { currStoryText = ""; currStoryLink = new List <string>(); }
protected override Func <IStoryThread> GetPassageThread(StoryPassage passage) { return(() => GetPassageThreadWithHeaderAndFooter(passage.MainThread, this.PassageHistory.Count == 0)); }
private void StoryOnPassageDone(StoryPassage output) { DisplayPassage(); }
private void StoryOnPassageEnter(StoryPassage passage) { Clear(); }
protected override Func <IStoryThread> GetPassageThread(StoryPassage passage) { return(() => GetPassageThreadWithHeaderAndFooter(passage.MainThread, this.StartPassage == passage.Name)); }