Ejemplo n.º 1
0
        /// <inheritdoc />
        public void ConnectToServer(string ip, ushort port)
        {
            Debug.Assert(RunLevel < ClientRunLevel.Connecting);
            Debug.Assert(!_net.IsConnected);

            _net.Startup();

            OnRunLevelChanged(ClientRunLevel.Connecting);
            _net.ClientConnect(ip, port);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public void ConnectToServer(string ip, ushort port)
        {
            DebugTools.Assert(RunLevel < ClientRunLevel.Connecting);
            DebugTools.Assert(!_net.IsConnected);

            _net.Startup();

            OnRunLevelChanged(ClientRunLevel.Connecting);
            _net.ClientConnect(ip, port, PlayerNameOverride ?? _configManager.GetCVar <string>("player.name"));
        }