The NGSingleton T type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
NGSingleton T |
Methods
Name | Description | |
---|---|---|
Awake |
Assigns instance when the scene is loaded and logs a warning
when there already is an instance.
| |
OnEnable |
Assigns instance when code is compiled while playing.
|
Properties
Name | Description | |
---|---|---|
Instance |
Provides access to the one and only Instance of T. If no
instance of T can be found, the editor is paused to prevent
the console being spammed with NullReferenceExceptions.
|
See Also