Using UnityEngine;
public class TimeDela:MonoBehavior{
float myScencons=0;
public long time=100;
void Updata(){
myScencons+=Time.deltaTime;
if(myScencons>=1){
time--;
myScencons=0;
}
}
}
原文地址:http://www.cnblogs.com/HelloUnity/p/3729442.html