/* * // void NonCoroutineFunction() * // { * // StartCoroutine(m_GetUserToken("YourURL", (v_UserToken) => * // { * // //You can now use the v_UserToken variable * // Debug.Log(v_UserToken); * // })); * // } */ public static IEnumerator getUserInfo(int userId, Action <string> result) { string _url = $"{ServerAPI._uri}{ServerAPI._table_users}/{userId}/"; yield return(ServerAPI.GetRequest(_url, result)); }