Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Event.current.type == EventType.mouseDown && currentTool == CurrentTool.NONE && Tools.current != Tool.View && Event.current.button == 0)
- {
- startSelectedRect = Event.current.mousePosition;
- currentTool = CurrentTool.SELECT_RECT;
- }
- ....
- if (currentTool == CurrentTool.SELECT_RECT)
- {
- //Тут поперло выделение
- Vector2 endSelectedRect = Event.current.mousePosition;
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement