30 lines
542 B
C++
30 lines
542 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/GameModeBase.h"
|
|
#include "ToonTanksGameMode.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class TOONTANKS_API AToonTanksGameMode : public AGameModeBase
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
// Handles input or something after Actor died.
|
|
void ActorDied(AActor* DeadActor);
|
|
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
|
|
private:
|
|
// Tank Pointer for DeadActor which is ATank.
|
|
UPROPERTY()
|
|
class ATank* Tank;
|
|
|
|
};
|