Example #1
0
        /// <summary>
        /// 显示App升级弹框,游戏只管在需求的时机调用,平台层会处理弹出逻辑
        /// </summary>
        public void ShowUpdateDalogStatic()
        {
            GameFramework.CLog.Log($"调用代理层showUpdateDalogStatic:");

        #if JumpSDK || UNITY_EDITOR
        #elif UNITY_ANDROID
            AppUserAndroid.ShowUpdateDalogStatic();
        #elif UNITY_IOS
        #endif
        }
Example #2
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
        }
Example #3
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
        }
Example #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
        }
Example #5
0
        /// <summary>
        /// 是否显示登陆入口
        /// </summary>
        public bool ShowLogin()
        {
            GameFramework.CLog.Log($"调用代理层showLogin:"******"结果为:[{ Result}]");
            return(Result);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }