コード例 #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);
         });
     }
 }