mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
CogAbility: Change the way CogAbilityReplicator apply the tweaks to newly spawned actor. Now needs to be called manually.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "CogSampleFunctionLibrary_Team.h"
|
||||
#include "CogSampleGameplayAbility.h"
|
||||
#include "CogSampleLogCategories.h"
|
||||
#include "CogSamplePlayerController.h"
|
||||
#include "CogSampleRootMotionParams.h"
|
||||
#include "Components/CapsuleComponent.h"
|
||||
#include "Components/InputComponent.h"
|
||||
@@ -26,7 +25,7 @@
|
||||
#include "Net/UnrealNetwork.h"
|
||||
|
||||
#if ENABLE_COG
|
||||
#include "CogDebugDraw.h"
|
||||
#include "CogAbilityReplicator.h"
|
||||
#include "CogDebugMetric.h"
|
||||
#include "CogDebugPlot.h"
|
||||
#endif //ENABLE_COG
|
||||
@@ -352,6 +351,10 @@ void ACogSampleCharacter::TryFinishInitialize()
|
||||
return;
|
||||
}
|
||||
|
||||
#if ENABLE_COG
|
||||
ACogAbilityReplicator::TryApplyAllTweaksOnActor(this);
|
||||
#endif //ENABLE_COG
|
||||
|
||||
RegisterToAbilitySystemEvents();
|
||||
|
||||
bIsInitialized = true;
|
||||
|
||||
Reference in New Issue
Block a user