I am trying to do when i run the game it wait 3s before it starts in Unity. I put all gameobjetc in a empty object with code:
[SerializeField]
private float seconds = 3f;
private void Start()
{
StartCoroutine(Wait());
}
private IEnumerator Wait()
{
Time.timeScale = 0f;
yield return new WaitForSeconds(seconds);
Time.timeScale = 1f;
}
And when I start the game its just frozen nothing is counting down.