private static ChaClothesComponent GetCustomClothesComponent(ChaControl chaControl, bool main, int kind) { // for top clothes it fires once at start with first bool true (main load), then for each subpart with bool false // if true, objClothes are used, if false objParts return(main ? chaControl.GetCustomClothesComponent(kind) : chaControl.GetCustomClothesSubComponent(kind)); }