Ejemplo n.º 1
0
    public void AddClothing(Item_ModularClothing clothing, bool buildCharacter)
    {
        if (!IsCharacterReady)
        {
            return;
        }

        if (IsOverlapping(clothing, out overlap))
        {
            RemoveClothing(overlap);
        }

        clothing.ApplyClothing(CharacterAvatar);
        Clothing.Add(clothing);

        if (buildCharacter)
        {
            BuildCharacter();
        }
    }
Ejemplo n.º 2
0
    public void AddClothing(Item_ModularClothing clothing)
    {
        if (!IsCharacterReady)
        {
            return;
        }

        if (!CharacterAvatar.isActiveAndEnabled)
        {
            if (IsOverlapping(clothing, out overlap))
            {
                RemoveClothing(overlap);
            }
        }

        clothing.ApplyClothing(CharacterAvatar);
        Clothing.Add(clothing);

        BuildCharacter();
    }