Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void OnDrag(PointerEventData eventData)
- {
- Cursor.visible = false;
- this.transform.position = eventData.position;
- //Debug.Log("OnDrag");
- if (disabled == false)
- {
- this.transform.position = eventData.position;
- }
- }
- public void OnEndDrag(PointerEventData eventData)
- {
- Cursor.visible = true;
- //this.gameObject.GetComponent<SpriteRenderer>().sprite = redReg;
- //Debug.Log("OnEndDrag");
- }
- public void OnMouseOver()
- {
- //this.gameObject.GetComponent<SpriteRenderer>().sprite = redHL;
- }
- public void OnMouseExit()
- {
- highLit = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement