You've already forked LuckyWorld
36 lines
824 B
C++
36 lines
824 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "Gameplay/NaviSplineCreator.h"
|
|
#include "Core/LuckyRobotsGameInstance.h"
|
|
|
|
// Sets default values
|
|
ANaviSplineCreator::ANaviSplineCreator()
|
|
{
|
|
// 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;
|
|
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void ANaviSplineCreator::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void ANaviSplineCreator::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|
|
void ANaviSplineCreator::UpdateSplineVisibility()
|
|
{
|
|
ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance());
|
|
if (GameInstance)
|
|
{
|
|
SetActorHiddenInGame(!GameInstance->bIsShowPath);
|
|
}
|
|
} |