Created
June 30, 2018 16:20
-
-
Save dorgonman/f9b41c58339b2ffa68773a13ab2d966e to your computer and use it in GitHub Desktop.
wordpress_post1583_02.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UFUNCTION(Server, Reliable, WithValidation) | |
void Server_SpectatorReady(); | |
virtual void Server_SpectatorReady_Implementation(); | |
void ASpectatorTestPlayerController::Server_SpectatorReady_Implementation() | |
{ | |
auto pGameMode = Cast<AMyGameModeBase>(GetWorld()->GetAuthGameMode()); | |
if (pGameMode) | |
{ | |
++pGameMode->NumReadySpectator;//pGameMode->OnSpectatorReady(); | |
UE_LOG(LogTemp, Log, TEXT("NumReadySpectator: %d"), pGameMode->NumReadySpectator); | |
} | |
} | |
bool ASpectatorTestPlayerController::Server_SpectatorReady_Validate() | |
{ | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment