예제 #1
0
        public void CreateRandomGame()
        {
            _lobbyData.SetRandomGamemode();
            PopulateMapList();
            _lobbyData.SetRandomMap();
            SWMatchmaking.SetLobbyData(_lobbyData);
            Debug.Log("Creating random game for " + _lobbyData.ChosenGamemode);
            SWMatchmaking.CreateLobby();

            if (OnGameCreated != null)
            {
                OnGameCreated.Invoke();
            }
        }
예제 #2
0
        // PUBLIC

        public void CreateLobby()
        {
            SWMatchmaking.SetRegion((int)udpkit.platform.photon.PhotonRegion.Regions.BEST_REGION);
            SWMatchmaking.CreateLobby();
            StartCoroutine(WaitForLobbyCreated());
        }