145강. 게임 시작 위젯
This commit is contained in:
parent
9625075c19
commit
bf67ed1af0
BIN
Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/GameMode/BP_ToonTanksGameMode.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Widgets/WBP_StartGameWidget.uasset
(Stored with Git LFS)
Normal file
BIN
Content/Blueprints/Widgets/WBP_StartGameWidget.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -29,6 +29,7 @@ void AToonTanksGameMode::HandleGameStart()
|
||||
{
|
||||
Tank = Cast<ATank>(UGameplayStatics::GetPlayerPawn(this, 0));
|
||||
PlayerController = Cast<AToonTanksPlayerController>(UGameplayStatics::GetPlayerController(this, 0));
|
||||
StartGame();
|
||||
if (PlayerController)
|
||||
{
|
||||
PlayerController->SetPlayerEnabledState(false);
|
||||
|
@ -21,6 +21,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.
|
||||
UPROPERTY()
|
||||
|
Loading…
x
Reference in New Issue
Block a user