Corgi Engine  v9.2
MoreMountains.Tools.MMTimedDestruction Class Reference

Add this component to an object and it'll be auto destroyed X seconds after its Start() More...

Inheritance diagram for MoreMountains.Tools.MMTimedDestruction:

Public Types

enum  TimedDestructionModes { TimedDestructionModes.Destroy, TimedDestructionModes.Disable }
 the possible destruction modes More...
 

Public Attributes

TimedDestructionModes TimeDestructionMode = TimedDestructionModes.Destroy
 the destruction mode for this object : destroy or disable More...
 
float TimeBeforeDestruction =2
 The time (in seconds) before we destroy the object. More...
 

Protected Member Functions

virtual void Start ()
 On Start(), we schedule the object's destruction More...
 
virtual IEnumerator Destruction ()
 Destroys the object after TimeBeforeDestruction seconds More...
 

Detailed Description

Add this component to an object and it'll be auto destroyed X seconds after its Start()

Member Enumeration Documentation

◆ TimedDestructionModes

the possible destruction modes

Enumerator
Destroy 
Disable 

Member Function Documentation

◆ Destruction()

virtual IEnumerator MoreMountains.Tools.MMTimedDestruction.Destruction ( )
protectedvirtual

Destroys the object after TimeBeforeDestruction seconds

◆ Start()

virtual void MoreMountains.Tools.MMTimedDestruction.Start ( )
protectedvirtual

On Start(), we schedule the object's destruction

Member Data Documentation

◆ TimeBeforeDestruction

float MoreMountains.Tools.MMTimedDestruction.TimeBeforeDestruction =2

The time (in seconds) before we destroy the object.

◆ TimeDestructionMode

TimedDestructionModes MoreMountains.Tools.MMTimedDestruction.TimeDestructionMode = TimedDestructionModes.Destroy

the destruction mode for this object : destroy or disable


The documentation for this class was generated from the following file: