public void notifyIngredientAdded(List <IngredientType> ingredients)
    {
        for (int i = 0; i < ingredients.Count && i < 3; i++)
        {
            Slot           slot = slots[i];
            IngredientType type = ingredients[i];

            slot.ingredient.sprite = IngredientRenderer.instance().getSprite(type);
            slot.ingredient.color  = Color.white;

            IngredientData ingredient = Ingredients.instance().getIngredient(type);
            slot.primary.sprite   = Aspects.instance().getNormalSprite(ingredient.getPrimaryGuess());
            slot.primary.color    = Color.white;
            slot.secondary.sprite = Aspects.instance().getNormalSprite(ingredient.getSecondaryGuess());
            slot.secondary.color  = Color.white;
        }

        nFilledSlots = ingredients.Count;
    }
Пример #2
0
    void OnMouseOver()
    {
        IngredientData data = Ingredients.instance().getIngredient(type);

        HoverInfoController.instance().showInfo(transform.position, data.getPrimaryGuess(), data.getSecondaryGuess());
    }