Pierre Angelo

Generation

generate functionWed, 05 Apr 2023

¿Cómo mostrar por pantalla el resultado del tiempo transcurrido en una escena diferente en unity?

//use a timer to calculate the time Timer timer; void Start(){ timer = gameObject.AddComponent<Timer>(); timer.Duration = 10; timer.Run(); } void Update(){ Debug.Log("Time: " + timer.Elapsed); }

Want to kickstart your project?Use the new AI Studio to create your code