In this video I will show how you to make a simple countdown timer in Unity.
I will use a project from my previous videos and add a countdown before spawning the enemies.
To make the timer easily accessible from any script of your game, we will use the Singleton pattern.
Unity Singleton pattern detailed explanation: https://gamedevbeginner.com/singleton...
Thread discussion about correct ways of implementing Singleton pattern in Unity:
https://gamedev.stackexchange.com/que...
TimeManager full script: https://pastebin.com/hExFD2zp
00:00 Intro
00:14 Script intro and singleton brief explanation
01:26 TimeManager script explanation
02:20 Countdown timer usage explanation using the spawner from previous videos.
03:09 Add timer to Unity
03:33 Outro
#unity #gamedev #unitytutorial #codingdodo