using UnityEngine;
using System.Collections;
public class Test : MonoBehaviour {
private float timeleft;
void Update () {
//だいたい1秒ごとに処理を行う
timeleft -= Time.deltaTime;
if (timeleft <= 0.0) {
timeleft = 1.0f;
//ここに処理
}
}
}
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme