Inheritence
Summary
Destroys a GameObject after a number of seconds. If the GameObject or its children have any
components that implement ITemporaryEffect we will wait for those to be finished before destroying.
This is particularly useful if you want to delete a GameObject but want to wait for sounds or particles
to conclude.
Constructors
Fields
BecomeOrphan |
If the parent GameObject is destroyed we should become orphaned instead of being destroyed ourselves.
Once orphaned we'll stop all looping effects and wait to die. |
DestroyAfterSeconds |
Number of seconds to wait before destroying |
WaitForChildEffects |
If true we will wait for any ITemporaryEffect's to finish before destroying |
Methods
Static Methods
CreateOrphans |
Look at the children in this GameObject and orphan any temporary effects |