remove .vsconfig

This commit is contained in:
강민제 2025-04-13 22:35:58 +09:00
parent f1de2d47d7
commit 65fc5bdf97
5 changed files with 34 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ Saved
.idea .idea
.vscode .vscode
.vs .vs
*.vsconfig
*.VC.db *.VC.db
*.opensdf *.opensdf
*.opendb *.opendb

BIN
Content/Blueprints/Pawns/BP_PawnTank.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Blueprints/Pawns/BP_PawnTurret.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -3,19 +3,32 @@
#include "BasePawn.h" #include "BasePawn.h"
#include "Components/CapsuleComponent.h"
// Sets default values // Sets default values
ABasePawn::ABasePawn() ABasePawn::ABasePawn()
{ {
// Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it. // Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true; PrimaryActorTick.bCanEverTick = true;
CapsuleComp = CreateDefaultSubobject<UCapsuleComponent>(TEXT("Capsule Collider"));
RootComponent = CapsuleComp;
BaseMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Base Mesh"));
BaseMesh->SetupAttachment(RootComponent);
TurretMesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Turret Mesh"));
TurretMesh->SetupAttachment(BaseMesh);
ProjectileSpawnPoint = CreateDefaultSubobject<USceneComponent>(TEXT("Projectile Spawn Point"));
ProjectileSpawnPoint->SetupAttachment(TurretMesh);
} }
// Called when the game starts or when spawned // Called when the game starts or when spawned
void ABasePawn::BeginPlay() void ABasePawn::BeginPlay()
{ {
Super::BeginPlay(); Super::BeginPlay();
} }
// Called every frame // Called every frame

View File

@ -19,6 +19,19 @@ protected:
// Called when the game starts or when spawned // Called when the game starts or when spawned
virtual void BeginPlay() override; virtual void BeginPlay() override;
private:
UPROPERTY()
class UCapsuleComponent* CapsuleComp;
UPROPERTY()
UStaticMeshComponent* BaseMesh;
UPROPERTY()
UStaticMeshComponent* TurretMesh;
UPROPERTY()
USceneComponent* ProjectileSpawnPoint;
public: public:
// Called every frame // Called every frame
virtual void Tick(float DeltaTime) override; virtual void Tick(float DeltaTime) override;