public void SelectGameSession(string gameSessionID)
    {
        bool found = false;

        foreach (GameSession GS in myGameLiftClient.gameSessionlist.GameSessions)
        {
            if (GS.GameSessionId == gameSessionID)
            {
                found = true;
                myGameLiftClient.selectedGameSession = GS;

                break;
            }
        }
        if (found == true)
        {
            GameLiftServerExampleBehavior.LogToMyConsoleMainThread("Selected Game Session");
        }
        else
        {
            GameLiftServerExampleBehavior.LogToMyConsoleMainThread("Can't Select Game Session");
        }

        SelectGameSessionPanel.SetActive(false);
    }
    public void ToggleBoltFreeMode()
    {
#if BOLT_CLOUD
        GameLiftServerExampleBehavior.LogToMyConsoleMainThread("Cannot toggle mode in Bolt Free");
        return;
#endif

        staticData.boltFree = !staticData.boltFree;
        GameLiftServerExampleBehavior.LogToMyConsoleMainThread("Bolt Free Mode: " + staticData.boltFree.ToString());
    }
 public void DoCreatePlayerSession()
 {
     if (myGameLiftClient.selectedGameSession == null)
     {
         GameLiftServerExampleBehavior.LogToMyConsoleMainThread("Need to Select a Game Session");
     }
     else
     {
         myGameLiftClient.DoCreatePlayerSession(myGameLiftClient.selectedGameSession);
     }
 }
Esempio n. 4
0
 void LogToMyConsoleMainThread(string text)
 {
     GameLiftServerExampleBehavior.LogToMyConsoleMainThread(text);
 }
Esempio n. 5
0
 public static void LogToMyConsoleMainThread(string text)
 {
     NotAmazonUnityMainThreadDispatcher.Instance().Enqueue(
         GameLiftServerExampleBehavior.LogToMyConsoleEnum(text));
 }