public UserScore(string username, float score, int id, Dish.DishTypes dish) { this.username = username; this.score = score; this.id = id; this.dish = dish; }
private Texture GetDishTexture(Dish.DishTypes dishType) { switch (dishType) { case Dish.DishTypes.BurgerAndFries: return(_dishRenderTextures.BurgerAndFries); case Dish.DishTypes.ChiliCheeseFries: return(_dishRenderTextures.ChiliCheeseFries); case Dish.DishTypes.FishAndChips: return(_dishRenderTextures.FishAndChip); default: Debug.LogWarning($"Can't process dish of type {dishType.ToString()}"); return(_dishRenderTextures.FishAndChip); return(null); } }