public void createCape2() { if (!isDeadBody) { ClothFactory.DisposeObject(part_cape); if (myCostume.cape_mesh.Length > 0) { part_cape = ClothFactory.GetCape(reference, "Character/" + myCostume.cape_mesh, CharacterMaterials.materials[myCostume.brand_texture]); } } }
public void CreateCape() { if (!this.IsDeadBody) { ClothFactory.DisposeObject(this.part_cape); if (this.myCostume.cape_mesh.Length > 0) { this.part_cape = ClothFactory.GetCape(this.reference, "Character/" + this.myCostume.cape_mesh, CharacterMaterials.Materials[this.myCostume.brand_texture]); } } }
public void createUpperBody2() { Destroy(part_upper_body); Destroy(part_brand_1); Destroy(part_brand_2); Destroy(part_brand_3); Destroy(part_brand_4); Destroy(part_chest_1); Destroy(part_chest_2); if (!isDeadBody) { ClothFactory.DisposeObject(part_chest_3); } createCape2(); if (myCostume.part_chest_object_mesh.Length > 0) { part_chest_1 = (GameObject)Instantiate(Resources.Load("Character/" + myCostume.part_chest_object_mesh)); part_chest_1.transform.position = chest_info.transform.position; part_chest_1.transform.rotation = chest_info.transform.rotation; part_chest_1.transform.parent = transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; part_chest_1.renderer.material = CharacterMaterials.materials[myCostume.part_chest_object_texture]; } if (myCostume.part_chest_1_object_mesh.Length > 0) { part_chest_2 = (GameObject)Instantiate(Resources.Load("Character/" + myCostume.part_chest_1_object_mesh)); part_chest_2.transform.position = chest_info.transform.position; part_chest_2.transform.rotation = chest_info.transform.rotation; part_chest_2.transform.parent = transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; part_chest_2.transform.parent = transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; part_chest_2.renderer.material = CharacterMaterials.materials[myCostume.part_chest_1_object_texture]; } if (myCostume.part_chest_skinned_cloth_mesh.Length > 0 && !isDeadBody) { part_chest_3 = ClothFactory.GetCape(reference, "Character/" + myCostume.part_chest_skinned_cloth_mesh, CharacterMaterials.materials[myCostume.part_chest_skinned_cloth_texture]); } if (myCostume.body_mesh.Length > 0) { part_upper_body = GenerateCloth(reference, "Character/" + myCostume.body_mesh); part_upper_body.renderer.material = CharacterMaterials.materials[myCostume.body_texture]; } if (myCostume.brand1_mesh.Length > 0) { part_brand_1 = GenerateCloth(reference, "Character/" + myCostume.brand1_mesh); part_brand_1.renderer.material = CharacterMaterials.materials[myCostume.brand_texture]; } if (myCostume.brand2_mesh.Length > 0) { part_brand_2 = GenerateCloth(reference, "Character/" + myCostume.brand2_mesh); part_brand_2.renderer.material = CharacterMaterials.materials[myCostume.brand_texture]; } if (myCostume.brand3_mesh.Length > 0) { part_brand_3 = GenerateCloth(reference, "Character/" + myCostume.brand3_mesh); part_brand_3.renderer.material = CharacterMaterials.materials[myCostume.brand_texture]; } if (myCostume.brand4_mesh.Length > 0) { part_brand_4 = GenerateCloth(reference, "Character/" + myCostume.brand4_mesh); part_brand_4.renderer.material = CharacterMaterials.materials[myCostume.brand_texture]; } part_head.renderer.material = CharacterMaterials.materials[myCostume.skin_texture]; part_chest.renderer.material = CharacterMaterials.materials[myCostume.skin_texture]; }
public void createUpperBody2() { UnityEngine.Object.Destroy(this.part_upper_body); UnityEngine.Object.Destroy(this.part_brand_1); UnityEngine.Object.Destroy(this.part_brand_2); UnityEngine.Object.Destroy(this.part_brand_3); UnityEngine.Object.Destroy(this.part_brand_4); UnityEngine.Object.Destroy(this.part_chest_1); UnityEngine.Object.Destroy(this.part_chest_2); if (!this.isDeadBody) { ClothFactory.DisposeObject(this.part_chest_3); } this.createCape2(); if (this.myCostume.part_chest_object_mesh.Length > 0) { this.part_chest_1 = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Character/" + this.myCostume.part_chest_object_mesh)); this.part_chest_1.transform.position = this.chest_info.transform.position; this.part_chest_1.transform.rotation = this.chest_info.transform.rotation; this.part_chest_1.transform.parent = base.transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; this.part_chest_1.renderer.material = CharacterMaterials.materials[this.myCostume.part_chest_object_texture]; } if (this.myCostume.part_chest_1_object_mesh.Length > 0) { this.part_chest_2 = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("Character/" + this.myCostume.part_chest_1_object_mesh)); this.part_chest_2.transform.position = this.chest_info.transform.position; this.part_chest_2.transform.rotation = this.chest_info.transform.rotation; this.part_chest_2.transform.parent = base.transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; this.part_chest_2.transform.parent = base.transform.Find("Amarture/Controller_Body/hip/spine/chest").transform; this.part_chest_2.renderer.material = CharacterMaterials.materials[this.myCostume.part_chest_1_object_texture]; } if ((this.myCostume.part_chest_skinned_cloth_mesh.Length > 0) && !this.isDeadBody) { this.part_chest_3 = ClothFactory.GetCape(this.reference, "Character/" + this.myCostume.part_chest_skinned_cloth_mesh, CharacterMaterials.materials[this.myCostume.part_chest_skinned_cloth_texture]); } if (this.myCostume.body_mesh.Length > 0) { this.part_upper_body = this.GenerateCloth(this.reference, "Character/" + this.myCostume.body_mesh); this.part_upper_body.renderer.material = CharacterMaterials.materials[this.myCostume.body_texture]; } if (this.myCostume.brand1_mesh.Length > 0) { this.part_brand_1 = this.GenerateCloth(this.reference, "Character/" + this.myCostume.brand1_mesh); this.part_brand_1.renderer.material = CharacterMaterials.materials[this.myCostume.brand_texture]; } if (this.myCostume.brand2_mesh.Length > 0) { this.part_brand_2 = this.GenerateCloth(this.reference, "Character/" + this.myCostume.brand2_mesh); this.part_brand_2.renderer.material = CharacterMaterials.materials[this.myCostume.brand_texture]; } if (this.myCostume.brand3_mesh.Length > 0) { this.part_brand_3 = this.GenerateCloth(this.reference, "Character/" + this.myCostume.brand3_mesh); this.part_brand_3.renderer.material = CharacterMaterials.materials[this.myCostume.brand_texture]; } if (this.myCostume.brand4_mesh.Length > 0) { this.part_brand_4 = this.GenerateCloth(this.reference, "Character/" + this.myCostume.brand4_mesh); this.part_brand_4.renderer.material = CharacterMaterials.materials[this.myCostume.brand_texture]; } this.part_head.renderer.material = CharacterMaterials.materials[this.myCostume.skin_texture]; this.part_chest.renderer.material = CharacterMaterials.materials[this.myCostume.skin_texture]; }