protected static DrawBodyPart ( int shownBodyView, int i, |
||
shownBodyView | int | |
i | int | |
rect | ||
bodyPartColor | BodyPartColor | |
Résultat | void |
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)); } }