void VerifyCup(CupController cup)
 {
     if (order.Compare(cup.drink))
     {
         this.order = DrinkGenerator.Generate();
         textBoxManager.Add("HMM MM GOOD.\nTIP FOR YOU.\nNow, give me a " + order.ToString() + ".");
         sprite.sprite = happy;
         Sounds.EatSound();
         Sounds.ChangeSound();
         streak++;
         streakText.text = "Current Streak: " + streak;
         Tip();
     }
     else
     {
         textBoxManager.Add("NO! You gave me a " + cup.drink.ToString() + ".\nGive me a " + order.ToString() + ".");
         if (angry != null)
         {
             sprite.sprite = angry;
         }
         Sounds.WrongSound();
         streak          = 0;
         streakText.text = "Current Streak: " + streak;
     }
 }
Beispiel #2
0
 public bool Verify(Drink other)
 {
     print(drink.ToString());
     return(drink.Compare(other));
 }