Singleton pattern class. This class detects if T is a MonoBehavior and will
make a containing GameObject.
Inheritance Hierarchy
Namespace:
IBM.Watson.DeveloperCloud.Utilities
Assembly:
unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic class Singleton<T>
where T : class
Type Parameters
- T
- The typename of the class to create as a singleton object.
The SingletonT type exposes the following members.
Constructors
| Name | Description |
---|
![Public method Public method](../icons/pubmethod.gif) | SingletonT | Initializes a new instance of the SingletonT class |
Top
Properties
| Name | Description |
---|
![Public property Public property](../icons/pubproperty.gif) ![Static member Static member](../icons/static.gif) | Instance |
Returns the Singleton instance of T.
|
Top
See Also