SingletonManager Methods |
The SingletonManager type exposes the following members.
Name | Description | |
---|---|---|
AllServicesReady |
Checks if all registered services are ready
| |
Clear |
Clears out all existing singleton references. Use with care.
| |
CreateSingletonT |
Instantiates a new Singleton. Adds the component to a new GameObject and puts it in the System hierarchy
| |
GetT |
Gets a Registered service if it exists
| |
GetFromInterfaceT |
Gets a Registered service from its interface type if it exists
| |
GetTotalNumberOfServices |
Returns the number of registered services
| |
GetTotalNumberOfServicesReady |
Returns the number of registered services that is ready
| |
IsReady(Type) |
Checks if registered service is ready
| |
IsReadyT |
Checks if registered service is ready
| |
IsReadyFromInterfaceT |
Checks if registered service is ready
| |
IterateServices |
Iterate over all the services.
Note: This method locks, so take care.
| |
PrintWaitedFor |
Periodically log to the console while we wait for a service ot be ready
| |
RegisterService(SingletonBehaviour) |
Registers a service
| |
RegisterService(Type, SingletonBehaviour) |
Registers a service
| |
UnRegisterService |
Unregisters a service
| |
WaitForT |
Waits for a singleton on a coroutine
|