Skip to content

Instantly share code, notes, and snippets.

View Zidan-kohai's full-sized avatar

Zayniddin Kobilov Zidan-kohai

View GitHub Profile
using System.Collections;
using UnityEngine;
using UnityEngine.EventSystems;
public class SwipeDetector : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
{
private Vector2 lastPosition;
public Vector2 swipeDelta;
private Coroutine coroutine;