Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Now we want to ensure that when the time reaches zero, it actually reloads the game.
So in words, it takes you up to the next level.
So to do this, first of all, we need to ensure that we're saving our scene.
Then we need to go to file and build settings and show that your main scene is actually in your build
settings and it sits at level zero at the moment.
OK, so we're just simply going to call that and reload it.
So in our script, in order to actually load scenes, we tell it that we're using the scene management
so that we get access to those terms.
So using unity engine scene management, OK, that's going to allow us then to load levels as now when
we come down to a time count down, then we're at level.
Current time is less than or equal to zero, just going to come into this time time scale zero.
So instead of pausing, what I'm going to do is just basically reload the game, reload the level.
So I'm simply going to say scene manager.
The load scene and then inside the brackets, it just needs a scene.
No, which was zero.
That's it.
All right.
Nice and easy.
So if you just save that.
So for testing purposes, I'll probably make the scene about five seconds.
So if on the ground, if I now change my level time limit to something like five, it should start off
on five and then basically reload when it gets to zero.
Here we go, three to one.
You're out.
There we go.
Reload.
And it will just keep going.
OK, so basically we only have to survive five seconds, which is extremely easy.
But you will notice to all of my enemies are actually on scene all at the same time.
Which is going to make it a little bit more complex, a little bit more difficult.
So what we're going to do in the next video is ensure that the enemies switch on at different times.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.