StaticDrop
A class in Root.Township, the global namespace.
Detaches its object from its parent at start but still destroys it when the parent entity is destroyed.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
StaticDrop() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void Destroy(NetworkEntity obj) | Destroys this object. Called when the former parent's entity is destroyed. |
private void Start() | Hooks the parent's destroyed event, then unparents itself. |