Pierre Angelo

Generation

generate functionWed, 05 Apr 2023

¿Cómo mostrar por pantalla el tiempo transcurrido en unity?

int f = 0; int startTime = 0; int endTime = 0; void Start () { startTime = Time.time; } void Update () { if (f == 0) { endTime = Time.time; Debug.Log(endTime-startTime); f = 1; } }

Questions about programming?Chat with your personal AI assistant