Example #1
0
    public void OnRecipeShipped(ObjectiveManager.SRecipeScore recipeScore)
    {
        for (int i = 0; i < _IngredientWidgets.Count; i++)
        {
            float ingredientScore = (recipeScore._IngredientScores.Count > i) ? recipeScore._IngredientScores[i]._globalScore : 0f;
            _IngredientWidgets[i].SetGrade(GetGradeSprite(ingredientScore));
        }

        SetGrade(GetGradeSprite(recipeScore._GlobalScore));

        Debug.Log("Recipe SHIPPED");
    }
Example #2
0
    public void OnRecipeShipped(ObjectiveManager.SRecipeScore recipeScore)
    {
        _index = 1;
        // Ship animation
        foreach (Ingredient ingredient in _LaborOfLove)
        {
            MoveIngredientToShipping(ingredient);
        }
        MoveIngredientToShipping(_plateInstance.GetComponent <Ingredient>());

        _LaborOfLove.Clear();

        _plateInstance = (GameObject)Instantiate(_platePrefab, _preppedAnchors[0]);
    }
Example #3
0
 private void OnRecipeShipped(ObjectiveManager.SRecipeScore recipe)
 {
     AddShake(eScreenShakeIntensity.eVeryLow, eScreenShakeDuration.eSmall, true);
 }
Example #4
0
 //Objective
 private void OnRecipeShipped(ObjectiveManager.SRecipeScore score)
 {
     PlaySoundEffect(audioData.UsedStation_Bell);
 }