Unity 一度だけ処理(Do Once)


// Time.time > 1.5f の場合に1回だけHoge()を実行
if (Input.GetMouseButton(0))
{
if (iscalled == false)
{
iscalled = true;
Hoge();
}
}