Last active
June 25, 2018 14:37
-
-
Save TheStoneBook/dc84296c40377967ee9386f70d131d01 to your computer and use it in GitHub Desktop.
【Unity】EventSystemを使ったタッチイベントの取得
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class TouchEventTest : MonoBehaviour, IPointerDownHandler { | |
public void OnPointerDown(PointerEventData data){ | |
//ここに処理を書く。 | |
Debug.Log ("タッチしたよー!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment