Пример #1
0
 public static void Start()
 {
     if (ShieldShare.isShield(OtherData.s_channelName))
     {
         OtherData.s_pvpEndPanelScript.transform.Find("Image_bg").Find("Button_share").localScale = new UnityEngine.Vector3(0, 0, 0);
     }
 }
Пример #2
0
        public static void GetActivityData(string result)
        {
            JsonData jsonData = JsonMapper.ToObject(result);

            Activity.activityDatas = JsonMapper.ToObject <List <Activity.ActivityData> >(jsonData["activityDatas"].ToString());

            // 更新的部分
            {
                if (ShieldWeChat.isShield(OtherData.s_channelName))
                {
                    for (int i = (Activity.activityDatas.Count - 1); i >= 0; i--)
                    {
                        if (Activity.activityDatas[i].Title.CompareTo("关注微信公众号") == 0)
                        {
                            Activity.activityDatas.RemoveAt(i);
                        }
                    }
                }

                if (ShieldShare.isShield(OtherData.s_channelName))
                {
                    for (int i = (Activity.activityDatas.Count - 1); i >= 0; i--)
                    {
                        if (Activity.activityDatas[i].Title.CompareTo("大礼来袭") == 0)
                        {
                            Activity.activityDatas.RemoveAt(i);
                        }
                    }
                }
            }

            OtherData.s_activity.BtnActivity.onClick.Invoke();
        }
 public static void Start()
 {
     if (ShieldShare.isShield(OtherData.s_channelName))
     {
         GameObject.Find("Canvas_Middle").transform.Find("PVPGameResultPanel(Clone)").Find("Image_bg").Find("Button_share").localScale = new UnityEngine.Vector3(0, 0, 0);
     }
 }
Пример #4
0
        public static void Start()
        {
            TuiGuangYouLiPanelScript script = OtherData.s_tuiGuangYouLiPanelScript;

            script.m_text_myTuiGuangCode.text = "我的推广码:" + UserData.myTuiGuangCode;
            script.m_listview_player          = script.m_obj_tuiGuangList.GetComponent <ListViewScript>();

            NetLoading.getInstance().Show();

            LogicEnginerScript.Instance.GetComponent <MyTuiGuangYouLiDataRequest>().CallBack = script.onCallBackMyTuiGuangYouLiData;
            LogicEnginerScript.Instance.GetComponent <MyTuiGuangYouLiDataRequest>().OnRequest();

            // 更新的部分
            {
                if (ShieldShare.isShield(OtherData.s_channelName))
                {
                    script.gameObject.transform.Find("Image_bg/Button_yaoqing").localScale = new UnityEngine.Vector3(0, 0, 0);
                }
            }
        }
Пример #5
0
        public static void Start()
        {
            // 新增的
            {
                if (ShieldShare.isShield(OtherData.s_channelName))
                {
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/Share").localScale = Vector3.zero;
                }

                if (ShieldWeChat.isShield(OtherData.s_channelName))
                {
                    // 主界面客服按钮
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/Kefu").localScale = Vector3.zero;
                }

                // ios审核
                if (OtherData_hotfix.getIsIosCheck())
                {
                    // 转盘
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/Button_zhuanpan").localScale = Vector3.zero;

                    // 签到
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/Sign").localScale = Vector3.zero;

                    // 徽章兑换
                    OtherData.s_mainScript.gameObject.transform.Find("UserInfo/Medal/Button_medal_duihuan").localScale = Vector3.zero;

                    // 推广有礼
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/TuiGuangYouLi").localScale = Vector3.zero;

                    // 活动
                    OtherData.s_mainScript.gameObject.transform.Find("ButtonList/Notice").localScale = Vector3.zero;
                }
            }

            // 禁止多点触摸
            Input.multiTouchEnabled = false;

            ToastScript.clear();

            // 安卓回调
            AndroidCallBack.s_onPauseCallBack  = OtherData.s_mainScript.onPauseCallBack;
            AndroidCallBack.s_onResumeCallBack = OtherData.s_mainScript.onResumeCallBack;

            AudioScript.getAudioScript().stopMusic();

            OtherData.s_mainScript.startBgm();

            // 逻辑服务器
            {
                if (OtherData.s_mainScript.getLogicEnginerObj() == null)
                {
                    OtherData.s_mainScript.setLogicEnginerObj(LogicEnginerScript.create());
                    LogicEnginerScript.Instance.setOnLogicService_Connect(OtherData.s_mainScript.onSocketConnect_Logic);
                    LogicEnginerScript.Instance.setOnLogicService_Close(OtherData.s_mainScript.onSocketClose_Logic);
                    LogicEnginerScript.Instance.GetComponent <MainRequest>().CallBack = OtherData.s_mainScript.onReceive_Main;
                }
                else
                {
                    LogicEnginerScript.Instance.setOnLogicService_Connect(OtherData.s_mainScript.onSocketConnect_Logic);
                    LogicEnginerScript.Instance.setOnLogicService_Close(OtherData.s_mainScript.onSocketClose_Logic);

                    LogicEnginerScript.Instance.GetComponent <MainRequest>().CallBack = OtherData.s_mainScript.onReceive_Main;

                    if (LogicEnginerScript.Instance.isConnecion())
                    {
                        NetLoading.getInstance().Show();

                        LogicEnginerScript.Instance.GetComponent <GetUserInfoRequest>().OnRequest();
                        LogicEnginerScript.Instance.GetComponent <GetRankRequest>().OnRequest();
                        LogicEnginerScript.Instance.GetComponent <GetSignRecordRequest>().OnRequest();
                        LogicEnginerScript.Instance.GetComponent <GetUserBagRequest>().CallBack = onReceive_GetUserBag;
                        LogicEnginerScript.Instance.GetComponent <GetUserBagRequest>().OnRequest();
                        LogicEnginerScript.Instance.GetComponent <GetEmailRequest>().OnRequest();
                        LogicEnginerScript.Instance.GetComponent <GetNoticeRequest>().OnRequest();
                    }
                    else
                    {
                        NetErrorPanelScript.getInstance().Show();
                        NetErrorPanelScript.getInstance().setOnClickButton(OtherData.s_mainScript.onClickChongLian_Logic);
                        NetErrorPanelScript.getInstance().setContentText("与服务器断开连接,请重新连接");
                    }
                }
            }

            // 游戏打牌服务器
            {
                if (OtherData.s_mainScript.getPlayEnginerObj() == null)
                {
                    OtherData.s_mainScript.setPlayEnginerObj(PlayServiceSocket.create());

                    PlayServiceSocket.s_instance.setOnPlayService_Connect(OtherData.s_mainScript.onSocketConnect_Play);
                    PlayServiceSocket.s_instance.setOnPlayService_Receive(OtherData.s_mainScript.onSocketReceive_Play);
                    PlayServiceSocket.s_instance.setOnPlayService_Close(OtherData.s_mainScript.onSocketClose_Play);

                    PlayServiceSocket.s_instance.startConnect();
                }
                else
                {
                    PlayServiceSocket.s_instance.setOnPlayService_Connect(OtherData.s_mainScript.onSocketConnect_Play);
                    PlayServiceSocket.s_instance.setOnPlayService_Receive(OtherData.s_mainScript.onSocketReceive_Play);
                    PlayServiceSocket.s_instance.setOnPlayService_Close(OtherData.s_mainScript.onSocketClose_Play);
                }
            }

            OtherData.s_mainScript.m_laBaScript = OtherData.s_mainScript.m_laba.GetComponent <LaBaScript>();
        }