Esempio n. 1
0
    void Update()
    {
        totalCost = (sword.GetAmount() * sword.GetPrice()) + (axe.GetAmount() * axe.GetPrice()) + (gunner.GetAmount() * gunner.GetPrice()) + (looter.GetAmount() * looter.GetPrice());
        UpdateGUI();
        if (toggleVar == 1)
        {
            DialogueBox.SetActive(true);
            showMenuScript.PrintText();
            if (showMenuScript.isDone == true)
            {
                MenuBox.SetActive(true);
                ShowMenu();

                Cursor.visible   = true;
                Cursor.lockState = CursorLockMode.None;
            }
        }
        else
        {
            DialogueBox.SetActive(false);
            MenuBox.SetActive(false);
        }
    }