Skip to main content

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.

Constructors​

MemberWhat it is
StaticDrop()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Methods​

2 private and internal methods
MemberWhat 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.