C# 클래스 MonoInjection.MonoInjector

상속: MonoBehaviour
파일 보기 프로젝트 열기: DameonL/MonoInjection

공개 메소드들

메소드 설명
Inject ( Action callback ) : void

Queues a callback to be called at the next Update.

Reset ( ) : void
Subscribe ( IUpdate subscriber ) : void

Adds an object to the list of subscribers called every update.

Unsubscribe ( IUpdate subscriber ) : void

Removes an object from the list of subscribers called every Update.

비공개 메소드들

메소드 설명
FixedUpdate ( ) : void
LateUpdate ( ) : void
OnDestroy ( ) : void
ProcessCalls ( float deltaTime ) : void
Update ( ) : void

메소드 상세

Inject() 공개 메소드

Queues a callback to be called at the next Update.
public Inject ( Action callback ) : void
callback Action Any delegate that accepts no parameters and returns void.
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Subscribe() 공개 메소드

Adds an object to the list of subscribers called every update.
public Subscribe ( IUpdate subscriber ) : void
subscriber IUpdate An object which is to be called every update.
리턴 void

Unsubscribe() 공개 메소드

Removes an object from the list of subscribers called every Update.
public Unsubscribe ( IUpdate subscriber ) : void
subscriber IUpdate The object to be removed from the list.
리턴 void