コード例 #1
0
ファイル: UICookingMain.cs プロジェクト: wooga/ps_social_jam
 public void AcceptResult(RecipeMatch recipeMatch)
 {
     _components.Add (recipeMatch);
     if (recipeMatch.Component == ComponentType.Topping) {
         HandleTournamentEnd ();
     } else {
         NextStep ();
     }
 }
コード例 #2
0
ファイル: UICookingMain.cs プロジェクト: wooga/ps_social_jam
 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");
     }
 }
コード例 #3
0
ファイル: UIMatchResult.cs プロジェクト: wooga/ps_social_jam
 public void Init(RecipeMatch recipeMatch)
 {
     _match = recipeMatch;
     GetComponentInParent<UICookingMain>().PlaySoundForMatch(_match);
     Description.text = string.Format("{0}: {1}", recipeMatch.Recipe.Description, recipeMatch.Quality);
 }