Exemplo n.º 1
0
    public void UpdateCreatureCostumes()
    {
        for (int i = 0; i < Creatures.childCount; i++)
        {
            Creature creature = Creatures.GetChild(i).GetComponent <Creature> ();
            creature.ClearCosmetics();

            for (int k = 0; k < gm.Costumes.Count; k++)
            {
                int objectID = gm.Costumes[k] - 1;
                creature.ActivateCosmetic(objectID);
            }
        }

        UpdateShopScreen();
    }