コード例 #1
0
 public void DisplayTextBox()
 {
     buttonString = buttonString.Replace("<br>", "\n");
     if (MotherBox != null)
     {
         MotherBox.DisplayTextBox(titleString, mainString);
     }
     else
     {
         Debug.Log("MotherBox was null, please set it to a instance of motherBox");
     }
 }
コード例 #2
0
 public void FeedCompanion()
 {
     if (foodAmount > 0)
     {
         foodAmount--;
         feedingCounter++;
         //Do the things to make the mascot happy here
         companionMunchTimer = 0.7f;
         if (feedingCounter == 12)
         {
             textBoxMother.DisplayTextBox(feedingLoreTitle, feedingLoreText);
         }
     }
 }
コード例 #3
0
 public void DisplayRewardText(Quest quest)
 {
     textBoxMother.DisplayTextBox(quest.questDescription, quest.rewardText);
 }