Hi, i would like to give the option to not wait the waitforseconds in the Tanks Demo Game.
Now the game start showing the Round and wait a few seconds that i can set up in the GameManager Script.
I woul like to give the option to press some key and interrump the wait time.
How can i make this in the script.
This is de Void Start:
private void Start()
{
musicaInicio = FMODUnity.RuntimeManager.CreateInstance ("event:/Music_Background");
musicaInicio.setParameterValue ("Music", 0f);
musicaInicio.start ();
musicaInicio.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(gameObject));
// Create the delays so they only have to be made once.
m_StartWait = new WaitForSeconds (m_StartDelay);
m_EndWait = new WaitForSeconds (m_EndDelay);
SpawnAllTanks();
SetCameraTargets(); // Once the tanks have been created and the camera is using them as targets, start the game.
StartCoroutine (GameLoop ());
}
i woul like the way that if don’t want wait the the StartDelay, press some key and StartCoroutine.
Thanks