Ejemplo n.º 1
0
    // Checks required conditions for grouping of this step. If conditions are not met, reverts toggle back to false.
    public void CheckGroupEligibility()
    {
        if (!recipeManager.CheckGroupEligibility(this))
        {
            // Not eligible for grouping, set toggle as false back.
            SetToggle(false);
            toggleRef.interactable = false;
        }

        else
        {
            toggleRef.interactable = true;
        }

        // Refresh new group button
        recipeManager.NewGroupButtonVisibility();
    }