Example #1
0
 public void EnableMinionPanel()
 {
     MinionPanel.SetActive(true);
     PlayerPanel.SetActive(false);
     ItemsPanel.SetActive(false);
     QuestPanel.SetActive(false);
 }
Example #2
0
    public void ShowItems()
    {
        currentPanel = Panels.Items;

        MenuPanel.SetActive(false);
        WeaponsPanel.SetActive(false);
        ItemsPanel.SetActive(true);
        AbilitiesPanel.SetActive(false);

        MenuButton.GetComponent <Image>().color      = new Color(0.4117647f, 0.3882353f, 0.6196079f);
        WeaponsButton.GetComponent <Image>().color   = new Color(0.4117647f, 0.3882353f, 0.6196079f);
        ItemsButton.GetComponent <Image>().color     = new Color(0.2638712f, 0.2509804f, 0.3882353f);
        AbilitiesButton.GetComponent <Image>().color = new Color(0.4117647f, 0.3882353f, 0.6196079f);

        playerStats.SetupItemUIs(ItemsList);
    }