Skip to content

Instantly share code, notes, and snippets.

View SasquatchLV's full-sized avatar
🏠
Working from home

Elvis Ketners SasquatchLV

🏠
Working from home
  • Riga, Latvia
View GitHub Profile
@SasquatchLV
SasquatchLV / SwipeInput.cs
Created October 27, 2019 14:51 — forked from Fonserbc/SwipeInput.cs
A simple swipe detector for touchscreens for Unity3D. Four cardinal directions.
using UnityEngine;
/*
* Swipe Input script for Unity by @fonserbc, free to use wherever
*
* Attack to a gameObject, check the static booleans to check if a swipe has been detected this frame
* Eg: if (SwipeInput.swipedRight) ...
*
*
*/