Пример #1
0
    private void RestartEverything()
    {
        GameOverCanvas.SetActive(false);
        FinishedPotionCanvas.SetActive(false);
        GameOverText.text       = "";
        FinishedPotionText.text = "";
        PotionSceneManager.instance.RiddleTextBox.text = "";
        GameOverBlocker.SetActive(false);
        FinishedPotionBlocker.SetActive(false);

        PotionSceneManager.instance.currentRecipeStep = 0;
        PotionSceneManager.ShuffleRecipeSteps(ref PotionSceneManager.instance.potionToMake.Steps);
        PotionSceneManager.instance.isDropping = false;
        PotionSceneManager.instance.RiddleCanvas.SetActive(true);

        UILoading.instance.DisplayIngredients(PotionSceneManager.instance.potionToMake.PossibleIngredients);
    }
Пример #2
0
    public void FinishPotionMaking(string sceneToChangeToName)
    {
        FinishedPotionBlocker.SetActive(true);

        StartCoroutine(FinishPotionMakingTansitionAnimation(sceneToChangeToName));
    }