Advertisement
Guest User

selected

a guest
Nov 24th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. if (Event.current.type == EventType.mouseDown && currentTool == CurrentTool.NONE &&  Tools.current != Tool.View && Event.current.button == 0)
  2. {
  3.         startSelectedRect = Event.current.mousePosition;
  4.         currentTool = CurrentTool.SELECT_RECT;
  5. }
  6. ....
  7. if (currentTool == CurrentTool.SELECT_RECT)
  8. {
  9. //Тут поперло выделение
  10.       Vector2 endSelectedRect = Event.current.mousePosition;
  11.             ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement