| 144 | } |
| 145 | |
| 146 | void UFlowNode_ExecuteComponent::Cleanup() |
| 147 | { |
| 148 | if (UActorComponent* ResolvedComp = TryResolveComponent()) |
| 149 | { |
| 150 | if (IFlowCoreExecutableInterface* ComponentAsCoreExecutable = Cast<IFlowCoreExecutableInterface>(ResolvedComp)) |
| 151 | { |
| 152 | ComponentAsCoreExecutable->Cleanup(); |
| 153 | } |
| 154 | else if (ResolvedComp->Implements<UFlowCoreExecutableInterface>()) |
| 155 | { |
| 156 | IFlowCoreExecutableInterface::Execute_K2_Cleanup(ResolvedComp); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | Super::Cleanup(); |
| 161 | } |
| 162 | |
| 163 | void UFlowNode_ExecuteComponent::ForceFinishNode() |
| 164 | { |