Changed OnComboAction to OnUnhandledAction, and made it only broadcast if the event is not already handled by a Blueprint event node.
This commit is contained in:
parent
fc3f597dcd
commit
df1df9a56f
@ -147,6 +147,9 @@ void UComboManagerComponent::BroadcastDelegates(const UComboAction *ComboAction,
|
||||
{
|
||||
Binding->Execute(ComboAction, TriggerEvent);
|
||||
}
|
||||
this->OnComboAction.Broadcast(ComboAction, (TriggerEvent == EComboActionTriggerEvent::Activated) ? true : false);
|
||||
else
|
||||
{
|
||||
this->OnUnhandledAction.Broadcast(ComboAction, (TriggerEvent == EComboActionTriggerEvent::Activated) ? true : false);
|
||||
}
|
||||
this->LastComboAction = ComboAction;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ protected:
|
||||
TMap<TObjectPtr<const class UComboInputAsset>, float> DEBUG__UnlockTimers;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, BlueprintAssignable)
|
||||
FComboActionHandlerDelegate OnComboAction;
|
||||
FComboActionHandlerDelegate OnUnhandledAction;
|
||||
|
||||
private:
|
||||
void ActivateComboAction(const class UComboInputAsset *Input);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user