TimedObject
Class in Zigurous.Utility
Declaration
public class TimedObject : MonoBehaviour
Description
Destroys or deactives an object after a specified amount of time.
Properties
timeout | The amount of time in seconds before the object is timed out. |
timeoutEvent | The event that occurs when the object is timed out. |
timeoutBehavior | The behaviour to disable when timed out (only applicable for TimeoutEvent.Disable). |
detachChildren | Detaches the children of the object before it is destroyed (only applicable for TimeoutEvent.Destroy). |
Methods
Timeout | Handles the object being timed out. |