The singleton pattern is essentially a class which only allows a single instance of itself to be created and usually gives simple access to that instance. Behaving much like a regular static class but with some advantages. This is very useful for making global manager type classes that hold global variables and functions that many other classes need to access.
|Property ||Function |
|Instance ||Access singleton instance through this propriety. |
public class Manager : Singleton<Manager>
public void Foo()
public class ExampleClass : MonoBehaviour
private void Start()