예제 #1
0
    public void OpenEquipement()
    {
        inventoryUI.Open();
        equipmentUI.Open();
        hudManager.itemStatsPanel.SetPosition(false);
        hudManager.statsDisplayer.OpenClose();
        hudManager.ActivateBackground(true);

        hudManager.graphicRaycaster.enabled = true;
        state = InputState.Equipment;
        player.stats.velocity.x = 0;
    }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Tab))
     {
         if (inventoryUI.IsOpened)
         {
             inventoryUI.Close();
             equipmentUI.Close();
         }
         else
         {
             inventoryUI.Open();
             equipmentUI.Open();
         }
     }
 }