/// <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); }
/// <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")); }