public EditorClothItem(IObjectBase _obj, IObjectBase diffuse, ECharacterResType type) { restype = type; obj = _obj; texture_diffuse = diffuse; Fold = string.Format("{0}/{1}/{2}/{3}", CharacterConst.prefabPath, restype.ToString(), SexName, obj.Name); string assetpath = string.Format("{0}/{1}/{2}/{3}/{4}.prefab", CharacterConst.prefabPath, restype.ToString(), SexName, obj.Name, obj.Name); prefab = new PrefabItem(assetpath); wearpos = obj.Name.Substring(2, 2); }
public EditorConfigPrefab() { prefabItem = new PrefabItem("Assets/Tmp/Prefab/Resources/Config/CharacterConfig.prefab"); }