コード例 #1
0
 void Update()
 {
     if (dirtyRectangle)
     {
         if (held)
         {
             Lines.DrawAABB(rect, pressStarted, lastPosition, Color.clear, false);
             Lines.DrawAABB(rect, pressStarted, currentPress, color);
             dirtyRectangle = false;
         }
         else
         {
             Clear();
         }
         lastPosition = currentPress;
     }
 }
コード例 #2
0
 internal void DrawRect(Rect r, Color color)
 {
     Lines.DrawAABB(rect, r.min, r.max, color);
 }