Exemplo n.º 1
0
    void Update()
    {
        if (craftingUiMenu.entryDisabled)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.C) && !craftingUiMenu.exitDisabled)
        {
            craftingUiMenu.ToggleMenu();
        }

        if (!craftingUiMenu.Active)
        {
            FocusedOnCrafting = false;
            return;
        }

        CraftingUiBusy = !orderSnippet.IsMoving || toolkitMenu.ToolkitOpen;

        craftingUiMenu.UpdateDisplayWithSequenceProgress();

        if (Input.GetMouseButtonUp(0) && !toolkitMenu.ToolkitOpen)
        {
            EndCraftingSequence();
        }

        // craftingUiMenu.occupiablePositionContainer.Print();
    }
Exemplo n.º 2
0
 private void OnMouseDown()
 {
     Debug.Log("click on firecamp");
     if (m_crafting_menu == null)
     {
         Debug.LogError("Crafting menu cannot be null.");
     }
     m_crafting_menu.ToggleMenu();
 }