UICustomDrag.cs 763 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. namespace MetaClient
  6. {
  7. public class UICustomDrag : MonoBehaviour, IDragHandler, IEndDragHandler, IBeginDragHandler
  8. {
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. }
  13. public void OnDrag(PointerEventData eventData)
  14. {
  15. //CustomManager.Instance
  16. Debug.Log(eventData.delta.x + "");
  17. }
  18. public void OnBeginDrag(PointerEventData eventData)
  19. {
  20. }
  21. public void OnEndDrag(PointerEventData eventData)
  22. {
  23. }
  24. // Update is called once per frame
  25. void Update()
  26. {
  27. }
  28. }
  29. }