From bf67ed1af0111da9971d975e3021122fbc8a1f73 Mon Sep 17 00:00:00 2001 From: 10000Je Date: Thu, 15 May 2025 20:35:07 +0900 Subject: [PATCH] =?UTF-8?q?145=EA=B0=95.=20=EA=B2=8C=EC=9E=84=20=EC=8B=9C?= =?UTF-8?q?=EC=9E=91=20=EC=9C=84=EC=A0=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset | 4 ++-- Content/Blueprints/Widgets/WBP_StartGameWidget.uasset | 3 +++ Source/ToonTanks/ToonTanksGameMode.cpp | 1 + Source/ToonTanks/ToonTanksGameMode.h | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Content/Blueprints/Widgets/WBP_StartGameWidget.uasset diff --git a/Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset b/Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset index 1631af3..ebd56de 100644 --- a/Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset +++ b/Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:97d4bb8442517166383c7ef8f1494f787463a8568fcc8dd5c5d5929cce0d4722 -size 21170 +oid sha256:56fcab6001a8035fe46e3f9edf46a63d07f0ce67e6605869476b160ab3b05f80 +size 31440 diff --git a/Content/Blueprints/Widgets/WBP_StartGameWidget.uasset b/Content/Blueprints/Widgets/WBP_StartGameWidget.uasset new file mode 100644 index 0000000..13fa968 --- /dev/null +++ b/Content/Blueprints/Widgets/WBP_StartGameWidget.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2872763495e75bc34180b87842f5f1f9a5c7b80698129a2e052ffae706ef3283 +size 25936 diff --git a/Source/ToonTanks/ToonTanksGameMode.cpp b/Source/ToonTanks/ToonTanksGameMode.cpp index febbba2..e360e26 100644 --- a/Source/ToonTanks/ToonTanksGameMode.cpp +++ b/Source/ToonTanks/ToonTanksGameMode.cpp @@ -29,6 +29,7 @@ void AToonTanksGameMode::HandleGameStart() { Tank = Cast(UGameplayStatics::GetPlayerPawn(this, 0)); PlayerController = Cast(UGameplayStatics::GetPlayerController(this, 0)); + StartGame(); if (PlayerController) { PlayerController->SetPlayerEnabledState(false); diff --git a/Source/ToonTanks/ToonTanksGameMode.h b/Source/ToonTanks/ToonTanksGameMode.h index 48c2ef4..34c5be5 100644 --- a/Source/ToonTanks/ToonTanksGameMode.h +++ b/Source/ToonTanks/ToonTanksGameMode.h @@ -20,6 +20,10 @@ public: protected: virtual void BeginPlay() override; + + // function for Start Game Blueprint Event + UFUNCTION(BlueprintImplementableEvent) + void StartGame(); private: // Tank Pointer for DeadActor which is ATank.