PointerSlowDrag.cs 362 B

123456789101112
  1. using SC.InputSystem;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. using UnityEngine.EventSystems;
  7. public class PointerSlowDrag : PointerHandlers {
  8. public override void OnSCPointerDrag(InputDevicePartBase part, SCPointEventData eventData) {
  9. transform.position = eventData.dragSlowPosition;
  10. }
  11. }