并在需要响应的函数中添加广播 #include"CoreMinimal.h"#include"Components/ActorComponent.h"#include"HealthComponent.generated.h"// 自定义六参数代理事件DECLARE_DYNAMIC_MULTICAST_DELEGATE_SixParams(FOnHealthChangedSignature, UHealthComponent*, HealthComp,float, Health,float, HealthDelta,constclassUDamageType*,...