You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
579 B
22 lines
579 B
2 years ago
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
#include "SinglePlayerGM.h"
|
||
|
#include "SinglePlayerGS.h"
|
||
|
|
||
2 years ago
|
ASinglePlayerGM::ASinglePlayerGM()
|
||
|
: Super() {
|
||
2 years ago
|
GameStateClass = ASinglePlayerGS::StaticClass();
|
||
2 years ago
|
bIsMultiplayer = false;
|
||
2 years ago
|
}
|
||
|
|
||
|
void ASinglePlayerGM::BeginPlay() {
|
||
|
Super::BeginPlay();
|
||
|
UE_LOG(LogTemp, Warning, TEXT("SinglePlayer GameMode BeginPlay"));
|
||
|
GameStateClass = ASinglePlayerGS::StaticClass();
|
||
|
StartGame();
|
||
|
}
|
||
|
|
||
|
void ASinglePlayerGM::PostLogin(APlayerController *NewPlayer) {
|
||
|
AGameMode::PostLogin(NewPlayer);
|
||
|
}
|