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); }

Questions about programming?Chat with your personal AI assistant