///<summary> /// Connect the client to registered API in configLoader. ///</summary> public async Task ConnectToApi() { await configLoader.ConnectToApi(); if (ApiManager.instance.isInit) { UiManager.instance.ChangeApiButton("Connected to Api", Color.green); } else { UiManager.instance.ChangeApiButton("Fail to connected to Api", Color.red); } UiManager.instance.SetApiUrlText(configLoader.GetApiUrl()); }