Base-class for all singletons.
More...
|
static void | CreateInstance (bool searchExistingGameObject=true, bool deleteExistingInstance=false) |
| Creates an instance of this object. More...
|
|
static void | DeleteInstance () |
| Deletes the instance of this object. More...
|
|
|
virtual void | Awake () |
|
virtual void | OnDestroy () |
|
virtual void | OnApplicationQuit () |
|
|
static T | Instance [get, protected set] |
| Returns the singleton instance of this class. More...
|
|
bool | DontDestroy [get, set] |
| Don't destroy gameobject during scene switches. More...
|
|
Base-class for all singletons.
◆ CreateInstance()
Creates an instance of this object.
- Parameters
-
searchExistingGameObject | Search for existing GameObjects of this object (default: true, optional) |
deleteExistingInstance | Delete existing instance of this object (default: false, optional) |
◆ DeleteInstance()
Deletes the instance of this object.
◆ GameObjectName
Name of the gameobject in the scene.
◆ PrefabPath
Fully qualified prefab path.
◆ DontDestroy
Don't destroy gameobject during scene switches.
◆ Instance
Returns the singleton instance of this class.
- Returns
- Singleton instance of this class.
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/Common/Scripts/Util/Singleton.cs