Class BoltSingletonContainer
Namespace: Ludiq.Bolt
Syntax
[Singleton(Name = "Bolt Singleton Container", Automatic = true, Persistent = true)]
[Extract(false)]
public class BoltSingletonContainer : MonoBehaviour, ISingleton
Methods
GetInstance(BoltClass)
Declaration
public static BoltComponent GetInstance(BoltClass class)
Parameters
| Type | Name | Description |
|---|---|---|
| BoltClass | class |
Returns
| Type | Description |
|---|---|
| BoltComponent |
GetInstance<T>()
Declaration
public static T GetInstance<T>()
where T : class, IGeneratedComponent
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |