Skip to content

Instantly share code, notes, and snippets.

@KickStudio
KickStudio / guiScript
Created August 17, 2017 10:25
Unity C# click and longPress
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
public class uGuiScript : MonoBehaviour, IPointerDownHandler, IPointerUpHandler {
public UnityEvent onLongPress = new UnityEvent();
public UnityEvent onClick = new UnityEvent();