Ejemplo n.º 1
0
    public void shopFilter(string filterType)
    {
        if (filterType == "AllItems")
        {
            GlassBow.SetActive(true);
            WolfBlade.SetActive(true);
            StoneBlade.SetActive(true);
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefArmor.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            ThiefBoots.SetActive(true);
            CommonBoots.SetActive(true);
        }

        else if (filterType == "WeaponsOnly")
        {
            GlassBow.SetActive(true);
            WolfBlade.SetActive(true);
            StoneBlade.SetActive(true);
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);

            KnightHelmet.SetActive(false);
            VikingHelmet.SetActive(false);
            ThiefArmor.SetActive(false);
            ThiefHood.SetActive(false);
            KnightArmor.SetActive(false);
            ThiefBoots.SetActive(false);
            CommonBoots.SetActive(false);
        }

        else if (filterType == "ArmorOnly")
        {
            GlassBow.SetActive(false);
            WolfBlade.SetActive(false);
            StoneBlade.SetActive(false);
            BattleAxe.SetActive(false);
            DarkBow.SetActive(false);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefArmor.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            ThiefBoots.SetActive(true);
            CommonBoots.SetActive(true);
        }
    }
Ejemplo n.º 2
0
    public void changeFilter(string filterType)
    {
        if (filterType == "AllItems")
        {
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);
            SkullAxe.SetActive(true);
            Dagger.SetActive(true);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            VikingArmor.SetActive(true);
            ThiefBoots.SetActive(true);
        }

        else if (filterType == "WeaponsOnly")
        {
            BattleAxe.SetActive(true);
            DarkBow.SetActive(true);
            SkullAxe.SetActive(true);
            Dagger.SetActive(true);

            KnightHelmet.SetActive(false);
            VikingHelmet.SetActive(false);
            ThiefHood.SetActive(false);
            KnightArmor.SetActive(false);
            VikingArmor.SetActive(false);
            ThiefBoots.SetActive(false);
        }

        else if (filterType == "ArmorOnly")
        {
            BattleAxe.SetActive(false);
            DarkBow.SetActive(false);
            SkullAxe.SetActive(false);
            Dagger.SetActive(false);

            KnightHelmet.SetActive(true);
            VikingHelmet.SetActive(true);
            ThiefHood.SetActive(true);
            KnightArmor.SetActive(true);
            VikingArmor.SetActive(true);
            ThiefBoots.SetActive(true);
        }
    }