In this video we go over what a singleton is, how and why it works, and what it can be used for in Unity. In this video I create a simple score storing system based on collecting coins, stemming from my previous tutorial video about UnityEvents.
The link to that video: • UnityEvents Explained in 4 Minutes
FOLLOW THE SOCIALS:
Instagram: / contraband.software
TikTok: / contraband.software
MUSIC:
Breakfast in Paris by Alex Productions
TIMESTAMPS:
00:00 - The Problem
00:50 - Instance vs Static
01:35 - Coding a Singleton
02:36 - How it Solves our Problem
03:14 - Applying to a Game
04:19 - Demonstration
04:34 - Conclusion