blaster/Source/Blaster/PlayerState/BlasterPlayerState.h

27 lines
576 B
C
Raw Normal View History

2022-05-09 14:33:48 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerState.h"
#include "BlasterPlayerState.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API ABlasterPlayerState : public APlayerState
{
GENERATED_BODY()
public:
virtual void OnRep_Score() override;
void IncreaseScore(float ScoreAmount);
private:
class ABlasterCharacter* Character;
class ABlasterPlayerController* Controller;
ABlasterCharacter* GetCharacter() const;
ABlasterPlayerController* GetController() const;
};