MainMenuControllerSpawner
A class in Root.Township, the global namespace.
Main menu scene component that spawns the menu player controller at a spawn point, initializes it in the scene's LocalNetworkScene and sets up the VR platform for it. Client.
- Listed in Global namespace: M to O
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
MainMenuControllerSpawner() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private bool isLocomotionDisabled | If true, spawns the locomotionless controller instead of the moving one. |
private PlayerController menuController | The spawned controller. |
private Transform menuControllerSpawnPoint | Where the controller is placed and which way it faces. |
private LocalNetworkScene scene | The local network scene the controller's entity joins. |