in GameLiftExampleUnityProject/Assets/Scripts/Server/GameLift.cs [157:171]
public void Update()
{
// Wait for players to join for 5 seconds max
if(this.gameSessionInfoReceived && !this.gameStarted)
{
this.waitingForPlayerTime += Time.deltaTime;
if(this.waitingForPlayerTime > 5.0f)
{
System.Console.WriteLine("No players in 5 seconds from starting the game, terminate game session");
this.waitingForPlayerTime = 0.0f;
this.gameSessionInfoReceived = false;
this.TerminateGameSession();
}
}
}