GAS CPP OK

This commit is contained in:
2023-07-16 21:45:45 +08:00
parent 2492b14434
commit 3b3583901c
7 changed files with 8 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,7 +1,7 @@
/Engine=C:/GitHub/UnrealEngine/Engine/Shaders
/ShaderAutogen=E:/UE5/TG_ARPG/Intermediate/ShaderAutogen
/Plugin/FX/Niagara=C:/GitHub/UnrealEngine/Engine/Plugins/FX/Niagara/Shaders
/Plugin/GLTFExporter=C:/GitHub/UnrealEngine/Engine/Plugins/Enterprise/GLTFExporter/Shaders
/Plugin/ExrReaderShaders=C:/GitHub/UnrealEngine/Engine/Plugins/Media/ImgMedia/Shaders
/Plugin/WmfMedia=C:/GitHub/UnrealEngine/Engine/Plugins/Media/WmfMedia/Shaders
/Plugin/GLTFExporter=C:/GitHub/UnrealEngine/Engine/Plugins/Enterprise/GLTFExporter/Shaders
/Plugin/Experimental/ChaosNiagara=C:/GitHub/UnrealEngine/Engine/Plugins/Experimental/ChaosNiagara/Shaders

View File

@@ -79,10 +79,10 @@ void ATG_ARPGCharacter::BeginPlay()
AttributeSet = AbilitySystemComponent->GetSet<UTGAttributeSet>();
// 绑定预设的属性变化函数;当属性值变化时,触发绑定函数
const_cast<UTGAttributeSet*>(AttributeSet)->HealthChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnHealthChangeNative);
const_cast<UTGAttributeSet*>(AttributeSet)->ManaChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnManaChangedNative);
const_cast<UTGAttributeSet*>(AttributeSet)->AttackDamageChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnAttackDamageChangeNative);
const_cast<UTGAttributeSet*>(AttributeSet)->SpeedMultiplierChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnSpeedMultiplierChangedNative);
const_cast<UTGAttributeSet*>(AttributeSet)->HealthChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnHealthChangeNative);
const_cast<UTGAttributeSet*>(AttributeSet)->ManaChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnManaChangedNative);
const_cast<UTGAttributeSet*>(AttributeSet)->AttackDamageChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnAttackDamageChangeNative);
const_cast<UTGAttributeSet*>(AttributeSet)->SpeedMultiplierChangeDelegate.AddDynamic(this, &ATG_ARPGCharacter::OnSpeedMultiplierChangedNative);
}

View File

@@ -10,8 +10,8 @@
#include "TG_ARPGCharacter.generated.h"
class UTengenAbilityComponent;
class UTengenAttributeSet;
class UTGAbilitySystemComponent;
class UTGAttributeSet;
UCLASS()
class ATG_ARPGCharacter : public ACharacter , public IAbilitySystemInterface
@@ -55,7 +55,6 @@ protected:
void Look(const FInputActionValue& Value);
protected:
// APawn interface
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;