Method | Description | |
---|---|---|
Change ( IEnumerator nextState ) : IYieldable |
Suspend (permanently stop) execution of current coroutine and start a new one, this is equivalent to exiting a state and entering another state. It also allow "EnterState" to trigger again its callback once it will be executed.
|
|
Change ( IEnumerator nextState, KoreCallback onExitState ) : IYieldable |
Suspend (permanently stop) execution of current coroutine and start a new one, this is equivalent to exiting a state and entering another state. It also allow "EnterState" to trigger again its callback once it will be executed. This method also have callback
|
|
EnterState ( ) : IYieldable |
Prefer yielding this function instead of "null" to have a code that is more clear about its intent
|
|
EnterState ( KoreCallback onEnterState ) : IYieldable |
Prefer yielding this function instead of "null" to have a code that is more clear about its intent, also the callback will be executed only once when the state is entered
|
|
Event ( ) : |
A simple notification mechanism that can be polled like a input to detect state changes.
|
Method | Description | |
---|---|---|
StateCache ( ) : Kore.Utils |
public Change ( IEnumerator nextState ) : IYieldable | ||
nextState | IEnumerator | Next coroutine to be runned |
return | IYieldable |
public Change ( IEnumerator nextState, KoreCallback onExitState ) : IYieldable | ||
nextState | IEnumerator | Next coroutine to be runned |
onExitState | KoreCallback | Callback (Executed immediatly). |
return | IYieldable |
public EnterState ( KoreCallback onEnterState ) : IYieldable | ||
onEnterState | KoreCallback | Callback (Executed immediatly). |
return | IYieldable |