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 |
---|
 | SingletonT | Initializes a new instance of the SingletonT class |
Top
Properties
| Name | Description |
---|
  | Instance |
Returns the Singleton instance of T.
|
Top
See Also