Beispiel #1
0
    public void onTabSelected(SkillButton button)
    {
        if (selectedTab != null)
        {
            selectedTab.Deselect();
        }


        selectedTab = button;

        selectedTab.Select();
        ResetTabs();
        button.background.color = Color.grey;

        skillname.text        = selectedTab.name;
        skillicon.sprite      = selectedTab.buttonSprite.sprite;
        skilldescription.text = selectedTab.GetComponent <Text>().text;
        // selectedTab.unlockable = false;

        // UnlockSkill();
    }