Newer
Older
SkyFrontier-Project-IADE-UE4-3D / Source / SkyFrontier / Public / ScoreAttackGameMode.h
@Genexuz Genexuz on 8 Jan 2023 576 bytes GameMode
#pragma once

#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "PointsComponent.h"
#include "ScoreAttackGameMode.generated.h"

UCLASS()
class SKYFRONTIER_API AScoreAttackGameMode : public AGameModeBase
{
	GENERATED_BODY()

public:
	AScoreAttackGameMode();

	virtual void PostInitializeComponents() override;
	virtual void BeginPlay() override;
	virtual void Tick(const float DeltaSeconds) override;

private:
	int GoalScore;
	bool bGameEnded;
	APawn* Pawn1;
	APawn* Pawn2;
	UPointsComponent* PointsComponent1;
	UPointsComponent* PointsComponent2;
	
};