Exemple #1
0
    private static int UniformTypeToInt(UNIFORM_TYPE id)
    {
        if (id == UNIFORM_TYPE.CasualA)
        {
            return(0);
        }

        if (id == UNIFORM_TYPE.CasualB)
        {
            return(1);
        }

        if (id != UNIFORM_TYPE.UniformA)
        {
            if (id == UNIFORM_TYPE.UniformB)
            {
                return(3);
            }

            if (id == UNIFORM_TYPE.CasualAHSS)
            {
                return(4);
            }
        }

        return(2);
    }
Exemple #2
0
 public void setBodyByCostumeId(int id = -1)
 {
     if (id == -1)
     {
         id = costumeId;
     }
     costumeId                        = id;
     arm_l_mesh                       = CostumeOptions[id].arm_l_mesh;
     arm_r_mesh                       = CostumeOptions[id].arm_r_mesh;
     body_mesh                        = CostumeOptions[id].body_mesh;
     body_texture                     = CostumeOptions[id].body_texture;
     uniform_type                     = CostumeOptions[id].uniform_type;
     part_chest_1_object_mesh         = CostumeOptions[id].part_chest_1_object_mesh;
     part_chest_1_object_texture      = CostumeOptions[id].part_chest_1_object_texture;
     part_chest_object_mesh           = CostumeOptions[id].part_chest_object_mesh;
     part_chest_object_texture        = CostumeOptions[id].part_chest_object_texture;
     part_chest_skinned_cloth_mesh    = CostumeOptions[id].part_chest_skinned_cloth_mesh;
     part_chest_skinned_cloth_texture = CostumeOptions[id].part_chest_skinned_cloth_texture;
 }