Пример #1
0
    public void CloseCraftingMenu()
    {
        PlayerProperties.playerScript.windowAlreadyOpen = false;
        confirmationModal.Disable();
        Time.timeScale = 1;
        CloseWindow();

        PlayerProperties.tutorialWidgetMenu.CloseTutorial();
    }
Пример #2
0
    void CraftArtifact()
    {
        PlayerUpgrades.numberArtifragments -= priceOfArtifact;
        UpdatePrice(); // update price
        GameObject artifactInstant = Instantiate(targetArtifact);

        PlayerProperties.playerInventory.itemList.Add(targetArtifact);
        PlayerProperties.playerInventory.UpdateUI();
        confirmModal.Disable();
        StartCoroutine(animateCrafting());
        craftingMenu.CraftedItemVisuals(priceOfArtifact);
    }