Наследование: Interactable
Пример #1
0
    public void ShowAbilities()
    {
        currentPanel = Panels.Abilities;

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

        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.4117647f, 0.3882353f, 0.6196079f);
        AbilitiesButton.GetComponent <Image>().color = new Color(0.2638712f, 0.2509804f, 0.3882353f);
    }
Пример #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);
    }