第一次提交
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
|
||||
|
||||
|
||||
#include "Bullet/GCS_SphereBulletInstance.h"
|
||||
|
||||
#include "Components/SphereComponent.h"
|
||||
|
||||
|
||||
// Sets default values
|
||||
AGCS_SphereBulletInstance::AGCS_SphereBulletInstance()
|
||||
{
|
||||
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
|
||||
Sphere = CreateDefaultSubobject<USphereComponent>("Sphere");
|
||||
SetRootComponent(Sphere);
|
||||
}
|
||||
|
||||
UShapeComponent* AGCS_SphereBulletInstance::GetBulletShape_Implementation() const
|
||||
{
|
||||
return Sphere;
|
||||
}
|
||||
|
||||
// Called when the game starts or when spawned
|
||||
void AGCS_SphereBulletInstance::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
}
|
||||
|
||||
// Called every frame
|
||||
void AGCS_SphereBulletInstance::Tick(float DeltaTime)
|
||||
{
|
||||
Super::Tick(DeltaTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user