Update Character to Play Quack SFX on Pickup

This commit is contained in:
Philip W 2024-01-27 12:59:45 +00:00
parent ec609c72bf
commit 45eb16b478
11 changed files with 28 additions and 11 deletions

BIN
SeagullGame/Content/AI/AIC_Enemy.uasset (Stored with Git LFS)

Binary file not shown.

BIN
SeagullGame/Content/AI/BP_TillLocation.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
SeagullGame/Content/AI/BT_Enemy.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
SeagullGame/Content/TopDown/Blueprints/PhilQuak.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -158,6 +158,7 @@ void ASeagullGameCharacter::EndGame()
void ASeagullGameCharacter::PickupItem()
{
OnPlayerPickupItem.Broadcast();
if (IsValid(CurrentItem))
{
DropItem();

View File

@ -19,12 +19,16 @@ public:
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnPlayerDamage);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnPlayerPickupItem);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnGameEnd, FString, Message);
UPROPERTY(BlueprintAssignable, Category = "Events")
FOnPlayerDeath OnPlayerDeath;
UPROPERTY(BlueprintAssignable, Category = "Events")
FOnPlayerDeath OnPlayerDamage;
UPROPERTY(BlueprintAssignable, Category = "Events")
FOnPlayerDeath OnPlayerDeath;
FOnPlayerPickupItem OnPlayerPickupItem;
UPROPERTY(BlueprintAssignable, Category = "Events")
FOnGameEnd OnGameEnd;