diff --git a/Source/vampires/PlayerCharacter.cpp b/Source/vampires/PlayerCharacter.cpp index f5dd92b..d3258ad 100644 --- a/Source/vampires/PlayerCharacter.cpp +++ b/Source/vampires/PlayerCharacter.cpp @@ -38,6 +38,9 @@ APlayerCharacter::APlayerCharacter() GarlicSphereComponent = CreateDefaultSubobject(TEXT("Garlic Sphere Component")); GarlicSphereComponent->SetupAttachment(RootComponent); GarlicSphereComponent->SetSphereRadius(150.0f); + + //Create Weapon Inventory Component + WeaponInventoryComponent = CreateDefaultSubobject(TEXT("Weapon Inventory Component")); } void APlayerCharacter::BeginPlay() diff --git a/Source/vampires/PlayerCharacter.h b/Source/vampires/PlayerCharacter.h index dd3d3cd..27ea35c 100644 --- a/Source/vampires/PlayerCharacter.h +++ b/Source/vampires/PlayerCharacter.h @@ -7,6 +7,7 @@ #include "EXPComponent.h" #include "GoldComponent.h" #include "VampireCharacter.h" +#include "WeaponInventoryComponent.h" #include "Camera/CameraComponent.h" #include "Components/SphereComponent.h" #include "GameFramework/SpringArmComponent.h" @@ -41,20 +42,22 @@ public: UPROPERTY(EditDefaultsOnly, BlueprintReadWrite) float GarlicUpdateTime = 1.0f; - -protected: - UPROPERTY() - UEXPComponent* EXPComponent; - + UPROPERTY(VisibleAnywhere) USphereComponent* GarlicSphereComponent; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) TArray OverlappedEnemies; - UPROPERTY() + UPROPERTY(EditAnywhere, BlueprintReadWrite) + UEXPComponent* EXPComponent; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) UGoldComponent* GoldComponent; + UPROPERTY(EditAnywhere, BlueprintReadWrite) + UWeaponInventoryComponent* WeaponInventoryComponent; + private: FTimerHandle GarlicTimerHandle;