public void GetSocialPlayUser(PlatformUser socialPlayUser, Action <WebserviceCalls.UserInfo> callback) { WebserviceCalls webserviceCalls = GameObject.FindObjectOfType(typeof(WebserviceCalls)) as WebserviceCalls; //todo remove email webserviceCalls.GetUserFromWorld(socialPlayUser.appID, socialPlayUser.platformID, socialPlayUser.platformUserID, socialPlayUser.userName, null, (WebserviceCalls.UserInfo x) => { WebserviceCalls.UserInfo userGuid = x; callback(userGuid); }); }