top of page

TOSHICHAN
Unityでスクリプト&簡単な実装サイト
画面上で指が動いたとき
if(Input.touchCount > 0)
{
foreach(Touch t in Input.touches)
{
if (t.phase != TouchPhase.Moved)
{
//画面上で指が動いたとき
}
}
}
bottom of page
if(Input.touchCount > 0)
{
foreach(Touch t in Input.touches)
{
if (t.phase != TouchPhase.Moved)
{
//画面上で指が動いたとき
}
}
}