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

        foreach (Ingredient ing in stateManager.currentRecipe.ingredients)
        {
            SpotHighlighter.activate(dict [ing], ing);
        }
    }
Exemplo n.º 2
0
    private void dehighlightAllSpots()
    {
        List <GameObject> tmp = initializer.getAllSpots();

        foreach (GameObject go in tmp)
        {
            SpotHighlighter.setHighlighted(false, go);
        }
    }
Exemplo n.º 3
0
    private void deactivateAllSpots()
    {
        List <GameObject> tmp = initializer.getAllSpots();

        foreach (GameObject go in tmp)
        {
            SpotHighlighter.deactive(go);
        }
    }
    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);
        }
    }
Exemplo n.º 5
0
    private void highlightSpots()
    {
        Dictionary <Ingredient, GameObject> dict = initializer.getIngGoMapping();

        foreach (KeyValuePair <Ingredient, GameObject> entry in dict)
        {
            if (stateManager.currentStep.ingredients.Contains(entry.Key.id))
            {
                SpotHighlighter.setHighlighted(true, entry.Value);
            }
        }
    }