public static DrawLine ( Vector3 p1, Vector3 p2 ) : void | ||
p1 | Vector3 | |
p2 | Vector3 | |
return | void |
public static void DrawBox(Rect position) { Vector3[] vector3Array1 = new Vector3[5]; int num1 = 0; Vector3[] vector3Array2 = vector3Array1; int index1 = num1; int num2 = 1; int num3 = index1 + num2; vector3Array2[index1] = new Vector3(position.xMin, position.yMin, 0.0f); Vector3[] vector3Array3 = vector3Array1; int index2 = num3; int num4 = 1; int num5 = index2 + num4; vector3Array3[index2] = new Vector3(position.xMax, position.yMin, 0.0f); Vector3[] vector3Array4 = vector3Array1; int index3 = num5; int num6 = 1; int num7 = index3 + num6; vector3Array4[index3] = new Vector3(position.xMax, position.yMax, 0.0f); Vector3[] vector3Array5 = vector3Array1; int index4 = num7; int num8 = 1; int num9 = index4 + num8; vector3Array5[index4] = new Vector3(position.xMin, position.yMax, 0.0f); SpriteEditorUtility.DrawLine(vector3Array1[0], vector3Array1[1]); SpriteEditorUtility.DrawLine(vector3Array1[1], vector3Array1[2]); SpriteEditorUtility.DrawLine(vector3Array1[2], vector3Array1[3]); SpriteEditorUtility.DrawLine(vector3Array1[3], vector3Array1[0]); }
public static void DrawBox(Rect position) { Vector3[] array = new Vector3[5]; int num = 0; array[num++] = new Vector3(position.xMin, position.yMin, 0f); array[num++] = new Vector3(position.xMax, position.yMin, 0f); array[num++] = new Vector3(position.xMax, position.yMax, 0f); array[num++] = new Vector3(position.xMin, position.yMax, 0f); SpriteEditorUtility.DrawLine(array[0], array[1]); SpriteEditorUtility.DrawLine(array[1], array[2]); SpriteEditorUtility.DrawLine(array[2], array[3]); SpriteEditorUtility.DrawLine(array[3], array[0]); }