Esempio n. 1
0
 void OnGUI()
 {
     if (drawRect)
     {
         // Create a rect from both mouse positions
         var rect = MouseUtils.GetScreenRect(firstPosition, Input.mousePosition);
         MouseUtils.DrawScreenRect(rect, new Color(0.8f, 0.8f, 0.95f, 0.25f));
         MouseUtils.DrawScreenRectBorder(rect, 2, new Color(0.8f, 0.8f, 0.95f));
     }
 }