top of page

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