Toolbox

Introduction
Originated from http://www.ibm.com/developerworks/webservices/library/co-single/index.html

If you're here, you probably want to implement Global Variables. For any other usage, just take this as a starting place.

The toolbox is a singleton, before anything else. But it improves upon the concept. Basically this encourages better coding practices, such as reducing coupling and unit testing.

Usage Example
MyClass.cs

Implementation
Toolbox.cs

Requirement
(optional) MonoBehaviourExtended.cs (from GetOrAddComponent)

Singleton.cs (from Singleton)