The PumpkinBehaviour class is a general base class for handling core events and states. The main feature of the PumpkinBehaviour is the state machine and state scheduler, states can be set and transitioned in simple way. eg. SetState( "Demo" ) will call a method called DemoStart() on the current class and then DemoUpdate() every update until the SetState( "SomeOther" ) is called. When a state changes the StateNameEnd() transition is called.
Behaviour state event. | |
Behaviour update. | |
Update event, called once per frame. | |
Internal destroy handler. | |
Destroy event. | |
Set the next state. | |
Set the next state with delay. | |
Schedule the next Update() or StateName() update for n seconds from now. | |
Get the active state name. | |
Compare state name to the active one. | |
Get the active state run time in seconds. | |
Get the active state run time in milliseconds. | |
Remove component by name. | |
Add component by name |
Associate user data with this behaviour. |