public string userId()//uid { #if UNITY_ANDROID && !UNITY_EDITOR QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance(); return(androidSupport.getUserId()); #else return(""); #endif }
public string userId() //uid { #if UNITY_IOS && !UNITY_EDITOR IntPtr intPtr = quicksdk_nativeUserId(); return(Marshal.PtrToStringAnsi(intPtr)); #elif UNITY_ANDROID && !UNITY_EDITOR QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance(); return(androidSupport.getUserId()); #else return(""); #endif }