public void TakeOff(ClothModel cm) { OffCount = 1; ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, cm); ich.TakeOff(OffFinish); }
public void PutOn(ClothModel cm) { OnCount = 1; ICloths ich = ClothFactory.CreatCloth(resType, umaContext, characterData, characterSlotOverlay, character, characterBase, cm); cloths.Add(ich); ich.PutOn(OnFinish); }
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); } }
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); } } }