Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1.     public void OnDrag(PointerEventData eventData)
  2.     {
  3.  
  4.         Cursor.visible = false;
  5.         this.transform.position = eventData.position;
  6.  
  7.         //Debug.Log("OnDrag");
  8.         if (disabled == false)
  9.         {
  10.  
  11.             this.transform.position = eventData.position;
  12.  
  13.         }
  14.  
  15.     }
  16.     public void OnEndDrag(PointerEventData eventData)
  17.     {
  18.  
  19.         Cursor.visible = true;
  20.         //this.gameObject.GetComponent<SpriteRenderer>().sprite = redReg;
  21.         //Debug.Log("OnEndDrag");
  22.     }
  23.  
  24.     public void OnMouseOver()
  25.     {
  26.         //this.gameObject.GetComponent<SpriteRenderer>().sprite = redHL;
  27.     }
  28.  
  29.     public void OnMouseExit()
  30.     {
  31.         highLit = false;
  32.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement