31 lines
864 B
C++
31 lines
864 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "FishingPoint.h"
|
|
|
|
#include "Components/BoxComponent.h"
|
|
#include "ProjectFish/Definations.h"
|
|
|
|
|
|
// Sets default values
|
|
AFishingPoint::AFishingPoint()
|
|
{
|
|
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = false;
|
|
BoxComponent = CreateDefaultSubobject<UBoxComponent>(FName("Box"));
|
|
|
|
BoxComponent->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
|
|
BoxComponent->SetCollisionResponseToAllChannels(ECollisionResponse::ECR_Ignore);
|
|
BoxComponent->SetCollisionResponseToChannel(TRACE_FISHING, ECollisionResponse::ECR_Block);
|
|
BoxComponent->SetupAttachment(RootComponent);
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void AFishingPoint::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
|