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.