Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created January 30, 2015 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/3e7ac500f58aa30b8823 to your computer and use it in GitHub Desktop.
Save tsubaki/3e7ac500f58aa30b8823 to your computer and use it in GitHub Desktop.
ダブルクリックを検知する
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class DoubleClick : MonoBehaviour, IPointerClickHandler
{
public void OnPointerClick (PointerEventData eventData)
{
if( eventData.clickCount > 1 ){
Debug.Log(eventData.clickCount);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment