Newer
Older
SkyFrontier-Project-IADE-UE4-3D / Source / SkyFrontier / Public / ScoreAttackGameMode.h
@Genexuz Genexuz on 8 Jan 2023 576 bytes GameMode
  1. #pragma once
  2. #include "CoreMinimal.h"
  3. #include "GameFramework/GameModeBase.h"
  4. #include "PointsComponent.h"
  5. #include "ScoreAttackGameMode.generated.h"
  6. UCLASS()
  7. class SKYFRONTIER_API AScoreAttackGameMode : public AGameModeBase
  8. {
  9. GENERATED_BODY()
  10. public:
  11. AScoreAttackGameMode();
  12. virtual void PostInitializeComponents() override;
  13. virtual void BeginPlay() override;
  14. virtual void Tick(const float DeltaSeconds) override;
  15. private:
  16. int GoalScore;
  17. bool bGameEnded;
  18. APawn* Pawn1;
  19. APawn* Pawn2;
  20. UPointsComponent* PointsComponent1;
  21. UPointsComponent* PointsComponent2;
  22. };