Back to square one

Apparently we can display code snippets on this thing, doesn’t show colour though UNTIL NOW

// Snippet from Glacier's NetworkHandler.cs
private void OnLobbyCreated(Result result, Lobby lobby)
    {
        if (result == Result.OK)
        {
            lobby.SetFriendsOnly();
            lobby.SetJoinable(true);
            lobby.MaxMembers = 4;
            if (NetworkManager.Singleton.StartHost())
            {
                Debug.Log("[NetworkHandler] Host started successfully");
            }
            else
            {
                Debug.LogError("[NetworkHandler] Failed to start host");
            }
        }
    }

Leave a comment

Your email address will not be published. Required fields are marked *