Esempio n. 1
0
        public string channelName()          //获取渠道名称
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.getChannelName());
#else
            return("");
#endif
        }
Esempio n. 2
0
        public string channelName()                  //获取渠道名称
        {
#if UNITY_IOS && !UNITY_EDITOR
            IntPtr intPtr = quicksdk_nativeChannelName();
            return(Marshal.PtrToStringAnsi(intPtr));
#elif UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.getChannelName());
#else
            return("");
#endif
        }