C# 클래스 Kore.Coroutines.StateCache

파일 보기 프로젝트 열기: vgwb/Antura_arabic

공개 메소드들

메소드 설명
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 ( ) : StateEvent

A simple notification mechanism that can be polled like a input to detect state changes.

비공개 메소드들

메소드 설명
StateCache ( ) : Kore.Utils

메소드 상세

Change() 공개 메소드

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.
public Change ( IEnumerator nextState ) : IYieldable
nextState IEnumerator Next coroutine to be runned
리턴 IYieldable

Change() 공개 메소드

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
public Change ( IEnumerator nextState, KoreCallback onExitState ) : IYieldable
nextState IEnumerator Next coroutine to be runned
onExitState KoreCallback Callback (Executed immediatly).
리턴 IYieldable

EnterState() 공개 메소드

Prefer yielding this function instead of "null" to have a code that is more clear about its intent
public EnterState ( ) : IYieldable
리턴 IYieldable

EnterState() 공개 메소드

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
public EnterState ( KoreCallback onEnterState ) : IYieldable
onEnterState KoreCallback Callback (Executed immediatly).
리턴 IYieldable

Event() 공개 메소드

A simple notification mechanism that can be polled like a input to detect state changes.
public Event ( ) : StateEvent
리턴 StateEvent