Compare commits

...

3 Commits

Author SHA1 Message Date
f37574f0dc 147강. 카운트다운 시간 표시하기 2025-05-15 21:47:00 +09:00
0e0f997fc2 146강. 카운트다운 타이머 2025-05-15 21:02:35 +09:00
bf67ed1af0 145강. 게임 시작 위젯 2025-05-15 20:35:07 +09:00
5 changed files with 11 additions and 3 deletions

Binary file not shown.

BIN
Content/Blueprints/Widgets/WBP_StartGameWidget.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Content/Maps/Main.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -29,6 +29,7 @@ void AToonTanksGameMode::HandleGameStart()
{ {
Tank = Cast<ATank>(UGameplayStatics::GetPlayerPawn(this, 0)); Tank = Cast<ATank>(UGameplayStatics::GetPlayerPawn(this, 0));
PlayerController = Cast<AToonTanksPlayerController>(UGameplayStatics::GetPlayerController(this, 0)); PlayerController = Cast<AToonTanksPlayerController>(UGameplayStatics::GetPlayerController(this, 0));
StartGame();
if (PlayerController) if (PlayerController)
{ {
PlayerController->SetPlayerEnabledState(false); PlayerController->SetPlayerEnabledState(false);

View File

@ -20,6 +20,10 @@ public:
protected: protected:
virtual void BeginPlay() override; virtual void BeginPlay() override;
// function for Start Game Blueprint Event
UFUNCTION(BlueprintImplementableEvent)
void StartGame();
private: private:
// Tank Pointer for DeadActor which is ATank. // Tank Pointer for DeadActor which is ATank.