![]() | SingleInstanceT Class |
Namespace: spaar.ModLoader
public abstract class SingleInstance<T> : MonoBehaviour where T : SingleInstance<T>
The SingleInstanceT type exposes the following members.
Name | Description | |
---|---|---|
![]() | SingleInstanceT | Initializes a new instance of the SingleInstanceT class |
Name | Description | |
---|---|---|
![]() ![]() | Instance |
Return the single instance.
If none exists, a new game object is created and the component is added
to it.
|
![]() | Name |
Name of the game object this will be attached to.
|
Name | Description | |
---|---|---|
![]() ![]() | Initialize |
Create an instance if none exists already.
|