A class in Root.Township, the global namespace.
Helper that lets code get a callback when a NetworkEntity's GameObject is destroyed. Added to the entity by AttachTo.
Constructors
| Member | What it is |
|---|
DestroyedEventCaller() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private NetworkEntity entity | The entity passed to the callback. |
Events
| Member | What it is |
|---|
event Action<NetworkEntity> Callback | Raised with the entity when it is destroyed, except while the app is quitting. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void OnDestroy() | Raises Callback unless the app is quitting. |