27 lines
487 B
C++
27 lines
487 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "BlasterGameMode.h"
|
|
|
|
namespace MatchState
|
|
{
|
|
const FName Cooldown = FName("Cooldown");
|
|
}
|
|
|
|
void ABlasterGameMode::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
}
|
|
|
|
void ABlasterGameMode::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
UE_LOG(LogTemp, Warning, TEXT("Countdown: %f"), MatchTime - GetWorld()->GetTimeSeconds());
|
|
|
|
if (MatchTime - GetWorld()->GetTimeSeconds() <= 0.f)
|
|
{
|
|
RestartGame();
|
|
}
|
|
}
|