async void Start() { client = new UdpClient(Port); agones = GetComponent <AgonesSdk>(); bool ok = await agones.Connect(); if (ok) { Debug.Log(("Server - Connected")); } else { Debug.Log(("Server - Failed to connect, exiting")); Application.Quit(1); } ok = await agones.Ready(); if (ok) { Debug.Log($"Server - Ready"); } else { Debug.Log($"Server - Ready failed"); Application.Quit(); } }
async void Start() { client = new UdpClient(Port); agones = GetComponent <AgonesSdk>(); bool ok = await agones.Ready(); if (ok) { Debug.Log($"Server - Ready"); } else { Debug.Log($"Server - Ready failed"); Application.Quit(); } }
public static async Task Ready() { var agones = new AgonesSdk(new AgonesSdkOptions(), new DummyHttpClientFactory()); await agones.Ready(); }
public void SetComponentSDK(AgonesSdk component_) { component = component_; }
void Start() { client = new UdpClient(Port); agones = GetComponent <AgonesSdk>(); StartCoroutine(StartAgonesCheck()); }