Example #1
0
    public static void nextStep()
    {
        Debug.Log("Next!");
        if (currentStepIndex == currentRecipe.Count - 1)
        {
            createNewRandomRecipe();
        }
        else
        {
            currentStepIndex++;
        }

        kitchenDisplay = FindObjectOfType <KitchenDisplay>();
        kitchenDisplay.UpdateRecipe();
        kitchenDisplay.UpdateScore();
    }