Compare commits
3 Commits
3a729caab0
...
f6bbc7e8f0
Author | SHA1 | Date |
---|---|---|
baz | f6bbc7e8f0 | |
baz | c9c1753233 | |
baz | d6f728e376 |
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/Enemy/M_Test.uasset (Stored with Git LFS)
BIN
Content/Enemy/M_Test.uasset (Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/Level.umap (Stored with Git LFS)
BIN
Content/Levels/Level.umap (Stored with Git LFS)
Binary file not shown.
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/M_WildGrass.uasset (Stored with Git LFS)
Normal file
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/M_WildGrass.uasset (Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_WildGrass_xbreagf_1K_ORDp.uasset (Stored with Git LFS)
Normal file
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_WildGrass_xbreagf_1K_ORDp.uasset (Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_Wild_Grass_xbreagf_1K_D.uasset (Stored with Git LFS)
Normal file
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_Wild_Grass_xbreagf_1K_D.uasset (Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_Wild_Grass_xbreagf_1K_N.uasset (Stored with Git LFS)
Normal file
BIN
Content/Megascans/Surfaces/Wild_Grass_xbreagf/T_Wild_Grass_xbreagf_1K_N.uasset (Stored with Git LFS)
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -38,6 +38,7 @@ void AVampireAIController::OnPossess(APawn* InPawn)
|
|||
|
||||
EnemyCharacter = Cast<AEnemyCharacter>(InPawn);
|
||||
check(EnemyCharacter);
|
||||
EnemyCharacter->bUseControllerRotationYaw = false;
|
||||
EnemyCharacter->GetHealthComponent()->OnDamaged.BindUFunction(this, "OnDamaged");
|
||||
EnemyCharacter->GetHealthComponent()->OnDeath.BindUFunction(this, "OnDeath");
|
||||
|
||||
|
|
|
@ -11,6 +11,11 @@ AVampireCharacter::AVampireCharacter()
|
|||
|
||||
// Create Health Component
|
||||
HealthComponent = CreateDefaultSubobject<UHealthComponent>(TEXT("Health Component"));
|
||||
|
||||
PaperFlipbookComponent = CreateDefaultSubobject<UPaperFlipbookComponent>(TEXT("Paper Flipbook Component"));
|
||||
PaperFlipbookComponent->SetRelativeRotation(FRotator(0.0f, 90.0f,-90.0f));
|
||||
PaperFlipbookComponent->SetRelativeScale3D(FVector(0.2f, 0.2f, 0.2f));
|
||||
PaperFlipbookComponent->SetupAttachment(RootComponent);
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Character.h"
|
||||
#include "HealthComponent.h"
|
||||
#include "PaperFlipbookComponent.h"
|
||||
#include "VampireCharacter.generated.h"
|
||||
|
||||
UCLASS()
|
||||
|
@ -12,8 +13,11 @@ class VAMPIRES_API AVampireCharacter : public ACharacter
|
|||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
protected:
|
||||
public:
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
UPaperFlipbookComponent* PaperFlipbookComponent;
|
||||
|
||||
protected:
|
||||
UPROPERTY()
|
||||
UHealthComponent* HealthComponent;
|
||||
|
||||
|
@ -33,5 +37,4 @@ public:
|
|||
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
|
||||
|
||||
UHealthComponent* GetHealthComponent();
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue