Exemplo n.º 1
0
        public static async void Init(string roomName)
        {
            try
            {
                _matchmaker = await Matchmaker.Create(new Uri("ws://" + Host + ":" + Port), roomName);

                _matchmaker.PlayerAdded   += OnPlayerAdded;
                _matchmaker.PlayerRemoved += OnPlayerRemoved;
            }
            catch (Exception e)
            {
                Debug.LogException(e);
            }
        }