private float f = 0f;
void Update ()
{
f += Time.deltaTime;
Debug.LogError ("Time.deltaTime-->"+f);
Debug.LogError ("Time.realtimeSinceStartup-->"+Time.realtimeSinceStartup);
}
失去焦点 f不再累计
2024-01-28 10:32:22
private float f = 0f;
void Update ()
{
f += Time.deltaTime;
Debug.LogError ("Time.deltaTime-->"+f);
Debug.LogError ("Time.realtimeSinceStartup-->"+Time.realtimeSinceStartup);
}
失去焦点 f不再累计