Пример #1
0
 private void DisplayCurrentInkChoices()
 {
     for (int i = 0; i < _inkStory.currentChoices.Count; i++)
     {
         var choiceInstance  = _inkStory.currentChoices[i];
         int currChoiceIndex = i;
         _storyFeed.DisplayOptionLine(choiceInstance.text, () =>
         {
             _firstAfterChoice = true;
             _inkStory.ChooseChoiceIndex(currChoiceIndex);
         });
     }
 }
Пример #2
0
 private void DisplayCurrentInkChoices()
 {
     for (int i = 0; i < _inkStory.currentChoices.Count; i++)
     {
         ChoiceInstance choiceInstance  = _inkStory.currentChoices[i];
         int            currChoiceIndex = i;
         _storyFeed.DisplayOptionLine(choiceInstance.choiceText, () =>
         {
             _storyFeed.ClearOptions();
             _inkStory.ChooseChoiceIndex(currChoiceIndex);
         });
     }
 }