📅  最后修改于: 2022-03-11 14:48:39.142000             🧑  作者: Mango
代码示例1
public float timeLeft = 30.0f
void Update()
{
timeLeft -= Time.deltaTime;
if (timeLeft < 0)
{
//Do your method here
}
}