/// <summary>
    /// 当玩家登陆咪咕TV支付平台.
    /// </summary>
    //public void OnPlayerLoginMiGuTv()
    //{
    //    IsLoginMiGuTv = true;
    //}

    /// <summary>
    /// 当玩家退出咪咕TV支付平台.
    /// </summary>
    //public void OnPlayerExitMiGuTv()
    //{
    //    IsLoginMiGuTv = false;
    //}

    /// <summary>
    /// 点播支付返回.
    /// </summary>
    /// <param name="s">#号隔开 返回结果码#结果</param>
    public void OnPayFinish(string s)
    {
        Debug.Log("Unity: OnPayFinish:" + s);
        OnReceivedMiGuPayMsg("点播支付返回消息:" + s);

        //包月支付界面已经关闭.
        IsDisplayMiGuPayUI = false;
        //咪咕电视游戏包月查询完毕.
        IsQueryGameBaoYueState = false;

        string[]      msgArray = s.Split('#');
        MonthPayState type     = MonthPayState.Failed;

        if (msgArray[0] == "1")
        {
            //咪咕电视游戏包月支付订购成功.
            type = MonthPayState.Succeess;
        }

        switch (type)
        {
        case MonthPayState.Succeess:
        {
            //游戏包月成功或游戏已经进行过包月.
            IsHaveBaoYueGame = true;
            break;
        }

        case MonthPayState.Failed:
        {
            //游戏包月失败.
            //使游戏返回循环动画入口界面.
            //XkGameCtrl.IsLoadingLevel = false;
            //XkGameCtrl.LoadingGameMovie();

            //包月支付失败,创建是否继续包月.
            if (XkGameCtrl.GetInstance() != null &&
                XkGameCtrl.GetInstance().m_GameUICom != null)
            {
                XkGameCtrl.GetInstance().m_GameUICom.CreatGameJiXuBaoYuePanel();
            }
            break;
        }
        }

        OnReceivedMiGuPayMsg("CountPayState == " + type);
    }
    /// <summary>
    /// 包月支付返回.
    /// </summary>
    /// <param name="s">#号隔开 返回结果码#结果</param>
    public void OnMonthPayFinish(string s)
    {
        Debug.Log("Unity: OnMonthPayFinish:" + s);
        OnReceivedMiGuPayMsg("包月支付返回消息:" + s);
        //包月支付界面已经关闭.
        IsDisplayMiGuPayUI = false;
        //咪咕电视游戏包月查询完毕.
        IsQueryGameBaoYueState = false;

        string[]      msgArray = s.Split('#');
        MonthPayState type     = MonthPayState.Failed;

        if (msgArray[0] == "1")
        {
            //咪咕电视游戏包月支付订购成功.
            type = MonthPayState.Succeess;
        }

        switch (type)
        {
        case MonthPayState.Succeess:
        {
            //游戏包月成功或游戏已经进行过包月.
            IsHaveBaoYueGame = true;
            break;
        }

        case MonthPayState.Failed:
        {
            //游戏包月失败.
            //使游戏返回循环动画入口界面.
            XkGameCtrl.IsLoadingLevel = false;
            XkGameCtrl.LoadingGameMovie();
            break;
        }
        }
        OnReceivedMiGuPayMsg("MonthPayState == " + type);
    }