Example #1
0
        public string userId()//uid
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.getUserId());
#else
            return("");
#endif
        }
Example #2
0
        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
        }