A class in Root.Township, the global namespace.
Black, lowest-depth camera that switches on whenever there is no current PlayerController, so the screen is not left without a camera. A DontDestroyOnLoad singleton made by PlayerController.
Constructors
| Member | What it is |
|---|
FallbackCamera() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private Camera localCamera | The camera component this object turns on and off. |
private static Logger logger | NLog logger for this class. |
Methods
| Member | What it is |
|---|
static FallbackCamera Create() | Returns the existing instance or makes a new FallbackCamera GameObject with its camera, kept across scene loads. |
4 private and internal methods