Compare commits
3 Commits
707728940a
...
079fba5d8b
Author | SHA1 | Date |
---|---|---|
baz | 079fba5d8b | |
baz | 841880e364 | |
baz | ab8f0a2f32 |
BIN
Content/Enemy/BP_EnemyCharacter.uasset (Stored with Git LFS)
BIN
Content/Enemy/BP_EnemyCharacter.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Pickups/BP_EXPPickup.uasset (Stored with Git LFS)
BIN
Content/Pickups/BP_EXPPickup.uasset (Stored with Git LFS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -15,6 +15,8 @@ class VAMPIRES_API AEXPPickup : public APickup
|
|||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Pickup")
|
||||
int EXP = 1;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "PlayerCharacter.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
#include "Kismet/KismetMathLibrary.h"
|
||||
|
||||
// Sets default values
|
||||
APickup::APickup()
|
||||
|
@ -14,8 +15,13 @@ APickup::APickup()
|
|||
|
||||
// Create Sphere Component
|
||||
SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("Sphere Component"));
|
||||
SphereComponent->SetupAttachment(RootComponent);
|
||||
SetRootComponent(SphereComponent);
|
||||
SphereComponent->SetSphereRadius(25.0f);
|
||||
|
||||
SpriteComponent = CreateDefaultSubobject<UPaperSpriteComponent>(TEXT("Sprite Component"));
|
||||
SpriteComponent->SetRelativeRotation(FRotator(0.0f, 90.0f,-90.0f));
|
||||
SpriteComponent->SetRelativeScale3D(FVector(.5f, .5f, .5f));
|
||||
SpriteComponent->SetupAttachment(RootComponent);
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "CoreMinimal.h"
|
||||
#include "Components/SphereComponent.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "PaperSpriteComponent.h"
|
||||
#include "Pickup.generated.h"
|
||||
|
||||
UCLASS()
|
||||
|
@ -21,7 +22,10 @@ public:
|
|||
double PickupMovementSpeed = 1000;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
USphereComponent* SphereComponent;
|
||||
USphereComponent* SphereComponent = nullptr;
|
||||
|
||||
UPROPERTY(EditAnywhere)
|
||||
UPaperSpriteComponent* SpriteComponent = nullptr;
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
|
|
|
@ -8,7 +8,7 @@ public class vampires : ModuleRules
|
|||
{
|
||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||
|
||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput" });
|
||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput", "Paper2D" });
|
||||
|
||||
PrivateDependencyModuleNames.AddRange(new string[] { });
|
||||
|
||||
|
|
Loading…
Reference in New Issue