UnityApplicationWrapper
A class in Root.Township, Features.Utility.UnityWrappers.
Thin wrapper over UnityEngine.Application so code can be tested with a fake. Use the static Instance.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
IUnityApplicationWrapper,ITestUnityApplicationWrapper
Constructors
| Member | What it is |
|---|---|
UnityApplicationWrapper() | Creates an UnityApplicationWrapper with default values. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private static IUnityApplicationWrapper instance | Backing field for Instance. |
Properties
| Member | What it is |
|---|---|
static IUnityApplicationWrapper Instance { get; } | The shared wrapper, created on first use unless overridden. |
bool IsEditor { get; } | Whether the game is running in the Unity editor. |
Methods
1 private and internal method
| Member | What it is |
|---|---|
private void Features.Utility.UnityWrappers.ITestUnityApplicationWrapper.OverrideInstance(IUnityApplicationWrapper wrapper) | Replaces the shared instance; reach it by casting to ITestUnityApplicationWrapper. |