DrawBodyPart() protected static method

protected static DrawBodyPart ( int shownBodyView, int i, Rect rect, BodyPartColor bodyPartColor ) : void
shownBodyView int
i int
rect UnityEngine.Rect
bodyPartColor BodyPartColor
return void
Beispiel #1
0
 public static void DrawBodyParts(Rect rect, int shownBodyView, AvatarControl.BodyPartFeedback bodyPartCallback)
 {
     GUI.color = new Color(0.2f, 0.2f, 0.2f, 1f);
     if (AvatarControl.styles.Silhouettes[shownBodyView] != null)
     {
         GUI.DrawTexture(rect, AvatarControl.styles.Silhouettes[shownBodyView].image);
     }
     for (int i = 1; i < 9; ++i)
     {
         AvatarControl.DrawBodyPart(shownBodyView, i, rect, bodyPartCallback((BodyPart)i));
     }
 }