// Token: 0x06000161 RID: 353 RVA: 0x000033F6 File Offset: 0x000015F6
 public Material GetFaceMaterial(RagdollStylePack.SkinType requestedSkin, RagdollStylePack.FaceType requestedFace)
 {
     if (RagdollStylePack.GetSkin(requestedSkin, this.stylePack).faceColor != RagdollStylePack.FaceColor.White)
     {
         return(RagdollStylePack.GetFace(requestedFace, this.stylePack).materialDark);
     }
     return(RagdollStylePack.GetFace(requestedFace, this.stylePack).materialLight);
 }
 // Token: 0x06000165 RID: 357 RVA: 0x00003448 File Offset: 0x00001648
 public static RagdollStylePack.Skin GetPlayerSkin(PlayerSettings player)
 {
     if (player == null)
     {
         return(null);
     }
     return(RagdollStylePack.GetSkin(player.ragdollStyle.skin, player.ragdollStyle.stylePack));
 }
Esempio n. 3
0
 // Token: 0x06000083 RID: 131 RVA: 0x00009E88 File Offset: 0x00008088
 public static RagdollStylePack.Skin GetSkin(RagdollStylePack.SkinType skinType, RagdollStylePack ragdollStylePack)
 {
     for (int i = 0; i < ragdollStylePack.skins.Length; i++)
     {
         if (ragdollStylePack.skins[i].type == skinType)
         {
             return(ragdollStylePack.skins[i]);
         }
     }
     return(new RagdollStylePack.Skin());
 }
Esempio n. 4
0
 // Token: 0x06000084 RID: 132 RVA: 0x00009EC8 File Offset: 0x000080C8
 public static RagdollStylePack.Face GetFace(RagdollStylePack.FaceType faceType, RagdollStylePack ragdollStylePack)
 {
     for (int i = 0; i < ragdollStylePack.faces.Length; i++)
     {
         if (ragdollStylePack.faces[i].type == faceType)
         {
             return(ragdollStylePack.faces[i]);
         }
     }
     return(new RagdollStylePack.Face());
 }
 // Token: 0x06000160 RID: 352 RVA: 0x000033E3 File Offset: 0x000015E3
 public Material GetSkinMaterial(RagdollStylePack.SkinType requestedSkin)
 {
     return(RagdollStylePack.GetSkin(requestedSkin, this.stylePack).material);
 }