Exemplo n.º 1
0
    private void Update()
    {
        #region Game_Menu_Input

        if (Input.GetButtonDown("Cancel"))
        {
            if (!Menu.activeSelf)
            {
                Menu.SetActive(true);
            }
            else
            {
                Menu.SetActive(false);
                Character.SetActive(false);
                Skills.SetActive(false);
                Map.SetActive(false);
            }
        }

        if (Input.GetButtonDown("Character"))
        {
            if (!Menu.activeSelf || !Character.activeSelf)
            {
                Menu.SetActive(true);
                Character.SetActive(true);
                Inventory_UI_reference.Activate_Slots();
                Inventory_UI_reference.Deactivate_Slots();
                Inventory_reference.Inventory_UI_Callback();
            }

            else
            {
                Menu.SetActive(false);
                Character.SetActive(false);
            }
        }

        #endregion
    }