コード例 #1
0
ファイル: AvatarControl.cs プロジェクト: randomize/VimConfig
 protected static void DrawBone(int shownBodyView, int i, Rect rect, AvatarSetupTool.BoneWrapper bone, SerializedObject serializedObject, AvatarMappingEditor editor)
 {
     if (s_BonePositions[shownBodyView, i] != Vector2.zero)
     {
         Vector2 vector = s_BonePositions[shownBodyView, i];
         vector.y *= -1f;
         vector.Scale(new Vector2(rect.width * 0.5f, rect.height * 0.5f));
         vector = rect.center + vector;
         int num = 0x13;
         Rect rect2 = new Rect(vector.x - (num * 0.5f), vector.y - (num * 0.5f), (float) num, (float) num);
         bone.BoneDotGUI(rect2, i, true, true, serializedObject, editor);
     }
 }
コード例 #2
0
 protected static void DrawBone(int shownBodyView, int i, Rect rect, AvatarSetupTool.BoneWrapper bone, SerializedObject serializedObject, AvatarMappingEditor editor)
 {
   if (AvatarControl.s_BonePositions[shownBodyView, i] == Vector2.zero)
     return;
   Vector2 bonePosition = AvatarControl.s_BonePositions[shownBodyView, i];
   bonePosition.y *= -1f;
   bonePosition.Scale(new Vector2(rect.width * 0.5f, rect.height * 0.5f));
   Vector2 vector2 = rect.center + bonePosition;
   int num = 19;
   Rect rect1 = new Rect(vector2.x - (float) num * 0.5f, vector2.y - (float) num * 0.5f, (float) num, (float) num);
   bone.BoneDotGUI(rect1, i, true, true, serializedObject, editor);
 }