public override async void OnStartServer() { base.OnStartServer(); Instance = this; var serverIpPortInfo = ConfigureIpPortInfo(); Debug.Log("IP : " + serverIpPortInfo.IpAddress); var name = _serverName == null ? $"Server:{serverIpPortInfo.IpAddress}" : _serverName; var result = await MatchServer.Instance.RegisterServerAsync(name, serverIpPortInfo); //TODO : do proper error handling if (result == false) { Debug.LogError("Failed to register to match server"); } }
public override void OnStartClient() { base.OnStartClient(); Instance = this; }