Created
January 30, 2015 16:22
-
-
Save tsubaki/3e7ac500f58aa30b8823 to your computer and use it in GitHub Desktop.
ダブルクリックを検知する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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