Example #1
0
    public void TakeOff(ClothModel cm)
    {
        OffCount = 1;
        ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, cm);

        ich.TakeOff(OffFinish);
    }
Example #2
0
    public void PutOn(ClothModel cm)
    {
        OnCount = 1;
        ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, cm);

        cloths.Add(ich);
        ich.PutOn(OnFinish);
    }
Example #3
0
    public void TakeOffAll()
    {
        List <ClothModel> avs = new List <ClothModel>(characterData.avatars);

        OffCount = avs.Count;
        for (int i = 0; i < avs.Count; i++)
        {
            ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, avs[i]);
            ich.TakeOff(OffFinish);
        }
    }
Example #4
0
    public void PutOn(List <ClothModel> cms, bool isInitialze = false)
    {
        OnCount = cms.Count;

        for (int i = 0; i < cms.Count; i++)
        {
            ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, cms[i]);
            cloths.Add(ich);
            if (isInitialze)
            {
                ich.Initilze(OnFinish);
            }
            else
            {
                ich.PutOn(OnFinish);
            }
        }
    }