Beispiel #1
0
        /// <summary>
        /// U3D分享文本  title 分享标题 content 分享内容 分享URL
        /// </summary>
        public void ShareText(string title, string content, string url)
        {
            GameFramework.CLog.Log($"调用代理层shareText:title[{title}]content[{content}]url[{url}]");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            AppUserAndroid.ShareText(title, content, url);
        #elif UNITY_IOS
            AppUserIOS.ShareText(title, content, url);
        #endif
        }
Beispiel #2
0
        /// <summary>
        /// 显示评价
        /// </summary>
        public void ShowEvaluate()
        {
            GameFramework.CLog.Log($"调用代理层showEvaluate:");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            AppUserAndroid.ShowEvaluate();
        #elif UNITY_IOS
            AppUserIOS.ShowEvaluate();
        #endif
        }
Beispiel #3
0
        /// <summary>
        /// 显示GDPR用户协议,游戏中按钮点击事件执行内容
        /// </summary>
        public void ShowGDPRDialogStatic()
        {
            GameFramework.CLog.Log($"调用代理层showGDPRDialogStatic:");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            AppUserAndroid.ShowGDPRDialogStatic();
        #elif UNITY_IOS
            AppUserIOS.ShowGDPRDialogStatic();
        #endif
        }
Beispiel #4
0
        /// <summary>
        /// 一键登录
        /// </summary>
        public void LoginComStatic(int inOrOut)
        {
            GameFramework.CLog.Log($"调用代理层loginComStatic:inOrOut[{inOrOut}]");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            AppUserAndroid.LoginComStatic(inOrOut);
        #elif UNITY_IOS
            AppUserIOS.LoginComStatic(inOrOut);
        #endif
        }
Beispiel #5
0
        /// <summary>
        /// 是否显示登陆入口
        /// </summary>
        public bool ShowLogin()
        {
            GameFramework.CLog.Log($"调用代理层showLogin:"******"结果为:[{ Result}]");
            return(Result);
        }
Beispiel #6
0
        /// <summary>
        /// 获取分享URL 地址
        /// </summary>
        public string GetShareUrl()
        {
            GameFramework.CLog.Log($"调用代理层getShareUrl:");

            string Result = default;

        #if  JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            Result = AppUserAndroid.GetShareUrl();
        #elif UNITY_IOS
            Result = AppUserIOS.GetShareUrl();
        #endif
            GameFramework.CLog.Log($"结果为:[{ Result}]");
            return(Result);
        }
Beispiel #7
0
        /// <summary>
        /// 获取评价类型
        /// </summary>
        public int GetEvaluateMode()
        {
            GameFramework.CLog.Log($"调用代理层getEvaluateMode:");

            int Result = default;

        #if  JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            Result = AppUserAndroid.GetEvaluateMode();
        #elif UNITY_IOS
            Result = AppUserIOS.GetEvaluateMode();
        #endif
            GameFramework.CLog.Log($"结果为:[{ Result}]");
            return(Result);
        }
Beispiel #8
0
        /// <summary>
        /// 是否为欧盟用户,游戏中用于控制是否显示按钮 true:欧盟地区; false:非欧盟地区
        /// </summary>
        public bool IsRequestLocationInEeaOrUnknownStatic()
        {
            GameFramework.CLog.Log($"调用代理层isRequestLocationInEeaOrUnknownStatic:");

            bool Result = default;

        #if  JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            Result = AppUserAndroid.IsRequestLocationInEeaOrUnknownStatic();
        #elif UNITY_IOS
            Result = AppUserIOS.IsRequestLocationInEeaOrUnknownStatic();
        #endif
            GameFramework.CLog.Log($"结果为:[{ Result}]");
            return(Result);
        }