File tree 1 file changed +5
-3
lines changed
Source/ActorInteractionPlugin/Private/Components/Interactable
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -972,7 +972,7 @@ void UActorInteractableComponentBase::SetLifecycleCount_Implementation(const int
972
972
switch (LifecycleMode)
973
973
{
974
974
case EInteractableLifecycle::EIL_Cycled:
975
- if (NewLifecycleCount < -1 )
975
+ if (NewLifecycleCount <= -1 )
976
976
{
977
977
LifecycleCount = -1 ;
978
978
OnLifecycleCountChanged.Broadcast (LifecycleCount);
@@ -1005,8 +1005,8 @@ void UActorInteractableComponentBase::SetCooldownPeriod_Implementation(const flo
1005
1005
switch (LifecycleMode)
1006
1006
{
1007
1007
case EInteractableLifecycle::EIL_Cycled:
1008
- LifecycleCount = FMath::Max (0 .1f , NewCooldownPeriod);
1009
- OnLifecycleCountChanged .Broadcast (LifecycleCount );
1008
+ CooldownPeriod = FMath::Max (0 .1f , NewCooldownPeriod);
1009
+ OnCooldownPeriodChanged .Broadcast (CooldownPeriod );
1010
1010
break ;
1011
1011
case EInteractableLifecycle::EIL_OnlyOnce:
1012
1012
case EInteractableLifecycle::Default:
@@ -2219,6 +2219,8 @@ void UActorInteractableComponentBase::ResetDefaults()
2219
2219
2220
2220
void UActorInteractableComponentBase::PostEditChangeChainProperty (FPropertyChangedChainEvent& PropertyChangedEvent)
2221
2221
{
2222
+ Super::PostEditChangeChainProperty (PropertyChangedEvent);
2223
+
2222
2224
const FName PropertyName = (PropertyChangedEvent.MemberProperty != nullptr ) ? PropertyChangedEvent.GetPropertyName () : NAME_None;
2223
2225
2224
2226
FString interactableName = GetName ();
You can’t perform that action at this time.
0 commit comments