C# 클래스 GAudio.AGATPulseClient

You can extend this base class and override OnPulse for custom handling of pulse signals fired by MasterPulseModule and SubPulseModule. Inheriting from this class provides automatic subscription to a pulse and the option to subscribe to only specific step indexes.
상속: UnityEngine.MonoBehaviour, IGATPulseClient
파일 보기 프로젝트 열기: gregzo/G-Audio

공개 메소드들

메소드 설명
OnPulse ( IGATPulseInfo pulseInfo ) : void

Check if _subscribedSteps[ pulseInfo.StepIndex ] when overriding.

보호된 메소드들

메소드 설명
Awake ( ) : void

Call base.Awake() first if you override

CanSubscribeToPulse ( ) : bool

You can override this method to add constraints

IGATPulseClient ( bool newSteps ) : void
NewPulseStepShouldStartChecked ( int stepIndex ) : bool

If a new step has been added to the pulse, should _subscribedSteps[ stepIndex ] start true?

OnDisable ( ) : void

Call base.OnDisable() first if you override

OnEnable ( ) : void

Call base.OnEnable() first if you override

SubscribeToPulseIfNeeded ( ) : void

If CanSubscribeToPulse() is true, will subscribe

UnsubscribeToPulse ( ) : void

Unsubscribes to the pulse.

UpdateSubscribedSteps ( bool newSteps ) : void

메소드 상세

Awake() 보호된 메소드

Call base.Awake() first if you override
protected Awake ( ) : void
리턴 void

CanSubscribeToPulse() 보호된 메소드

You can override this method to add constraints
protected CanSubscribeToPulse ( ) : bool
리턴 bool

IGATPulseClient() 보호된 메소드

protected IGATPulseClient ( bool newSteps ) : void
newSteps bool
리턴 void

NewPulseStepShouldStartChecked() 보호된 메소드

If a new step has been added to the pulse, should _subscribedSteps[ stepIndex ] start true?
protected NewPulseStepShouldStartChecked ( int stepIndex ) : bool
stepIndex int
리턴 bool

OnDisable() 보호된 메소드

Call base.OnDisable() first if you override
protected OnDisable ( ) : void
리턴 void

OnEnable() 보호된 메소드

Call base.OnEnable() first if you override
protected OnEnable ( ) : void
리턴 void

OnPulse() 공개 추상적인 메소드

Check if _subscribedSteps[ pulseInfo.StepIndex ] when overriding.
public abstract OnPulse ( IGATPulseInfo pulseInfo ) : void
pulseInfo IGATPulseInfo
리턴 void

SubscribeToPulseIfNeeded() 보호된 메소드

If CanSubscribeToPulse() is true, will subscribe
protected SubscribeToPulseIfNeeded ( ) : void
리턴 void

UnsubscribeToPulse() 보호된 메소드

Unsubscribes to the pulse.
protected UnsubscribeToPulse ( ) : void
리턴 void

UpdateSubscribedSteps() 보호된 메소드

protected UpdateSubscribedSteps ( bool newSteps ) : void
newSteps bool
리턴 void