예제 #1
0
 void DrawLine(Raycast RaycastEditor, float Length)
 {
     Vector2 Position = RaycastEditor.Position();
     float x = Length;
     float y = 0f;
     Handles.color = Color.red;
     Handles.DrawLine(Position,new Vector2(Position.x + x,Position.y + y));
 }
 void DrawLine(Raycast RaycastGUI, float Length)
 {
     Vector3 Position = RaycastGUI.Position();
     float x = Length;
     float y = 0f;
     Handles.color = Color.red;
     Handles.DrawLine(Position,new Vector3(Position.x + x,Position.y + y,0f));
 }