diff --git a/Content/Blueprints/Pawns/BP_PawnTank.uasset b/Content/Blueprints/Pawns/BP_PawnTank.uasset deleted file mode 100644 index 1e85dbc..0000000 Binary files a/Content/Blueprints/Pawns/BP_PawnTank.uasset and /dev/null differ diff --git a/Content/Blueprints/Pawns/BP_PawnTurret.uasset b/Content/Blueprints/Pawns/BP_PawnTurret.uasset index 0934d88..6723b75 100644 Binary files a/Content/Blueprints/Pawns/BP_PawnTurret.uasset and b/Content/Blueprints/Pawns/BP_PawnTurret.uasset differ diff --git a/Content/Blueprints/Pawns/BP_Tank.uasset b/Content/Blueprints/Pawns/BP_Tank.uasset new file mode 100644 index 0000000..c78e1f3 Binary files /dev/null and b/Content/Blueprints/Pawns/BP_Tank.uasset differ diff --git a/Content/Maps/Main.umap b/Content/Maps/Main.umap index f056eef..75277b4 100644 Binary files a/Content/Maps/Main.umap and b/Content/Maps/Main.umap differ diff --git a/Source/ToonTanks/Tank.cpp b/Source/ToonTanks/Tank.cpp new file mode 100644 index 0000000..2db8f3b --- /dev/null +++ b/Source/ToonTanks/Tank.cpp @@ -0,0 +1,15 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Tank.h" +#include "GameFramework/SpringArmComponent.h" +#include "Camera/CameraComponent.h" + +ATank::ATank() +{ + SpringArm = CreateDefaultSubobject(TEXT("Spring Arm")); + SpringArm->SetupAttachment(RootComponent); + + Camera = CreateDefaultSubobject(TEXT("Camera")); + Camera->SetupAttachment(SpringArm); +} \ No newline at end of file diff --git a/Source/ToonTanks/Tank.h b/Source/ToonTanks/Tank.h new file mode 100644 index 0000000..fdb6d87 --- /dev/null +++ b/Source/ToonTanks/Tank.h @@ -0,0 +1,26 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "BasePawn.h" +#include "Tank.generated.h" + +/** + * + */ +UCLASS() +class TOONTANKS_API ATank : public ABasePawn +{ + GENERATED_BODY() + +public: + ATank(); + +private: + UPROPERTY(VisibleAnywhere, Category = "Components") + class USpringArmComponent* SpringArm; + + UPROPERTY(VisibleAnywhere, Category = "Components") + class UCameraComponent* Camera; +};