LocalPlayer
A class in Root.Township, the global namespace.
Player prefab component that turns on localOnly objects for the local player and remoteOnly objects for other players. Client.
- Listed in Global namespace: I to L
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
LocalPlayer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private GameObject[] localOnly | Objects shown only on the local player. |
private PlayerController playerController | The PlayerController on the same object. |
private GameObject[] remoteOnly | Objects shown only on other players. |