Exemple #1
0
    private void activateSpots()
    {
        Dictionary <Ingredient, GameObject> dict = initializer.getIngGoMapping();

        foreach (Ingredient ing in stateManager.currentRecipe.ingredients)
        {
            SpotHighlighter.activate(dict [ing], ing);
        }
    }
    private void showUsedGOs()
    {
        // highlight all ingredient and spots
        foreach (KeyValuePair <Ingredient, GameObject> entry in ingredientMapping)
        {
            GameObject go  = entry.Value;
            Ingredient ing = entry.Key;

            SpotHighlighter.activate(go, ing);
        }
    }