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
Показать файл Открыть проект

Открытые методы

Метод Описание
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