A class in Root.Township, Alta.Map.
A landmark on something that moves. Besides registering it re-syncs its position to players every second. Server side.
Constructors
| Member | What it is |
|---|
MovingLandmark() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|
protected override void Destroyed(NetworkEntity entity, bool isUnload) | Deregisters the landmark (unless it is kept after unload and this is an unload) and, on the server, stops the sync timer. |
protected override void Register() | Registers with the LandmarkManager and starts a repeating ForceSync every second. |