タイマー

private float timer = 5f;

void Update ()
{
 timer -= Time.deltaTime;
 if(timer <= 0.0f)
 {
  timer = 5f;
  5秒毎にやらせたい処理
 }
}

タグ:

unity
最終更新:2015年04月01日 23:36