public void AcceptResult(RecipeMatch recipeMatch) { _components.Add (recipeMatch); if (recipeMatch.Component == ComponentType.Topping) { HandleTournamentEnd (); } else { NextStep (); } }
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"); } }
public void Init(RecipeMatch recipeMatch) { _match = recipeMatch; GetComponentInParent<UICookingMain>().PlaySoundForMatch(_match); Description.text = string.Format("{0}: {1}", recipeMatch.Recipe.Description, recipeMatch.Quality); }