-
Notifications
You must be signed in to change notification settings - Fork 79
Siyao h/1.17/raw touches #201
Conversation
| } | ||
|
|
||
| void Update() { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will delete it. This might come from auth reformat code.
| _wrapper.OnPointerLeave(); | ||
| } | ||
|
|
||
| public void OnPointerDown(PointerEventData eventData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can wrap onPointerDown, onPointerUp, onDrag into one single #if block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried and failed. Since we inherent certain interface, wee need to add these function. Or do we add #if for interface as well?
| var position = _getPointerPosition(new Vector2(param.x, param.y)); | ||
| var pointerId = -1 - param.pointerId; | ||
| switch (param.phase) { | ||
| case 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use "magic number", please define some enums and use them instead
|
Already included in #226 |
No description provided.