Example #1
0
 public void AcceptResult(RecipeMatch recipeMatch)
 {
     _components.Add (recipeMatch);
     if (recipeMatch.Component == ComponentType.Topping) {
         HandleTournamentEnd ();
     } else {
         NextStep ();
     }
 }
Example #2
0
 public void PlaySoundForMatch(RecipeMatch _match)
 {
     if (_match.Quality < 50) {
         PlaySound ("Audio/UnsureClapping-MediocrePizza");
     } else if (_match.Quality < 100) {
         PlaySound ("Audio/Clapping2-GoodPizza");
     } else {
         PlaySound ("Audio/Clapping-GoodPizza");
     }
 }
Example #3
0
 public void Init(RecipeMatch recipeMatch)
 {
     _match = recipeMatch;
     GetComponentInParent<UICookingMain>().PlaySoundForMatch(_match);
     Description.text = string.Format("{0}: {1}", recipeMatch.Recipe.Description, recipeMatch.Quality);
 }