I have been reading http://wiki.unity3d.com/index.php/Toolbox to try implement a better Singleton pattern
I have created the necessary classes (MonoBehaviourExtended, Singleton, Toolbox), and can make use of this with the sample MyClass, only if the “(optional) runtime registration of global objects” section is removed.
With that code in place as per the example, I will receive the following error:
Assets/TestManager.cs(24,60): error CS0309: The type `MyComponent' must be convertible to `UnityEngine.Component' in order to use it as parameter `T' in the generic type or method `Toolbox.RegisterComponent<T>()'
Can anybody suggest how this should work? Any help is appreciated