Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        networkManager = GetComponent <NetworkManagerAmongFall>();
        if (!SteamManager.Initialized)
        {
            return;
        }
        lobbyCreated = Callback <LobbyCreated_t> .Create(OnLobbyCreated);

        lobbyEntered = Callback <LobbyEnter_t> .Create(OnLobbyEntered);

        FindLobbies = Callback <LobbyMatchList_t> .Create(OnFindPublicLobbies);

        gameLobbyJoinRequested = Callback <GameLobbyJoinRequested_t> .Create(OnGameLobbyJoinRequested);
    }