Fix substate label issue and add IsAfterFrame and IsBeforeFrame macros
This commit is contained in:
parent
b3cee07ada
commit
c43aca536a
Binary file not shown.
@ -115,9 +115,9 @@ void UFFStateMachineComponent::GoToState(UFFState* NewState)
|
|||||||
|
|
||||||
CurrentState->Exit(GetCurrentStateContext());
|
CurrentState->Exit(GetCurrentStateContext());
|
||||||
CurrentState = NewState;
|
CurrentState = NewState;
|
||||||
CurrentState->Enter(GetCurrentStateContext());
|
|
||||||
TicksInState = 0;
|
TicksInState = 0;
|
||||||
CurrentSubStateLabel = NAME_None;
|
CurrentSubStateLabel = NAME_None;
|
||||||
|
CurrentState->Enter(GetCurrentStateContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
void UFFStateMachineComponent::GoToEntryState()
|
void UFFStateMachineComponent::GoToEntryState()
|
||||||
|
@ -94,7 +94,7 @@ public:
|
|||||||
FORCEINLINE FName GetCurrentSubStateLabel() const;
|
FORCEINLINE FName GetCurrentSubStateLabel() const;
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
FORCEINLINE void SetSubStateLabel(FName InSubStateLabel);
|
void SetSubStateLabel(FName InSubStateLabel);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user