GAS CPP OK
This commit is contained in:
BIN
Content/Tengen/Misc/DT/DT_Boss1ArrtibuteSet.uasset
Normal file
BIN
Content/Tengen/Misc/DT/DT_Boss1ArrtibuteSet.uasset
Normal file
Binary file not shown.
BIN
Content/Tengen/Misc/DT/DT_DefaultAttributeSet.uasset
Normal file
BIN
Content/Tengen/Misc/DT/DT_DefaultAttributeSet.uasset
Normal file
Binary file not shown.
BIN
Content/Tengen/Misc/DT/DT_PlayerArrtibuteSet.uasset
Normal file
BIN
Content/Tengen/Misc/DT/DT_PlayerArrtibuteSet.uasset
Normal file
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user