Game Design Patterns: Singleton

Jared Amlin
Level Up Coding

--

There are at least two beneficial reasons for using the singleton design pattern. The fist, is granting global access to a class that is not instanced and only exists once. By doing this, you get rid of the need to store these classes in variables and use Get Component calls. The second, is having the ability to use lazy instantiation. This article will get into that later, as well as some potential pitfalls that come with using lazy…

--

--

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.