Пример #1
0
    void SetStoryCopySceneInfoWindowData(bool bSuccess, object param)
    {
        if (!bSuccess)
        {
            return;
        }
        int currentOpenStoryCopySceneInfoID = (int)param;

        StoryCopySceneInfoLogic.Instance().SetStoryCopySceneID(currentOpenStoryCopySceneInfoID);

        int nNewPlayerGuideIndex = -1;

        if (NewFunctionLogic.Instance() && NewFunctionLogic.Instance().NewPlayerGuideIndex > -1)
        {
            nNewPlayerGuideIndex = NewFunctionLogic.Instance().NewPlayerGuideIndex;
            NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
        }
        if (nNewPlayerGuideIndex == 18 ||
            nNewPlayerGuideIndex == 20 ||
            nNewPlayerGuideIndex == 22 ||
            nNewPlayerGuideIndex == 24)
        {
            StoryCopySceneInfoLogic.Instance().NewPlayerGuide();
        }
    }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_COMPLETEMISSION_RET packet = (GC_COMPLETEMISSION_RET )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            int nMissionID = packet.MissionID;
            int nRet       = packet.Ret;

            if (1 == nRet)
            {
                GameManager.gameManager.MissionManager.CompleteMissionOver(nMissionID);
                if (MissionLogLogic.Instance() != null)
                {
                    MissionLogLogic.Instance().DailyMissionRedPoint();
                }
                if (NewFunctionLogic.Instance() != null)
                {
                    NewFunctionLogic.Instance().DailyMissionRedPoint();
                }
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Пример #3
0
    public GameObject m_FirstChapterAwardBtn;   // 第一个星星总数奖励
    void Check_NewPlayerGuide()
    {
        if (NewFunctionLogic.Instance())
        {
            GameObject buttonGuide = null;
            switch (NewFunctionLogic.Instance().NewPlayerGuideIndex)
            {
            case 18:
                buttonGuide = m_ButtonEntyOne;
                break;

            case 20:
                buttonGuide = m_ButtonEntySecond;
                break;

            case 22:
                buttonGuide = m_ButtonEntyThird;
                break;

            case 24:
                buttonGuide = m_ButtonEntyForth;
                break;

            case 25:
                NewPlayerGuide(2);
                //NewFunctionLogic.Instance().NewPlayerGuideIndex = GlobeVar.INVALID_ID;
                break;
            }
            //NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            if (buttonGuide)
            {
                NewPlayerGuidLogic.OpenWindow(buttonGuide, 190, 300, "", "left", 0, true, true);
            }
        }
    }
Пример #4
0
 static void NewFunctionUI(int nIndex)
 {
     if (NewFunctionLogic.Instance())
     {
         NewFunctionLogic.Instance().NewPlayerGuide(nIndex);
     }
 }
Пример #5
0
 void Check_NewPlayerGuide()
 {
     if (NewFunctionLogic.Instance() && NewFunctionLogic.Instance().NewPlayerGuideIndex == 5)
     {
         NewPlayerGuide(1);
         NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
     }
 }
Пример #6
0
    void Awake()
    {
        m_Instance      = this;
        m_bFunctionOpen = false;
        m_bOpening      = false;

        ShowNewServerActivity();
    }
Пример #7
0
 public void close()
 {
     UIManager.CloseUI(UIInfo.PvPShopRoot);
     //add 关闭pvpShop的时候,打开竞技场界面 gzq
     if (NewFunctionLogic.Instance() != null)
     {
         ActivityController.RequireOpenPVPTab();
         NewFunctionLogic.Instance().OpenActivityWithIndex(3);
     }
 }
Пример #8
0
    public void ChangeToPvP()
    {
        //  if (null != m_TabController)
        //      m_TabController.ChangeTab("Tab2");

        if (NewFunctionLogic.Instance() != null)
        {
            ActivityController.RequireOpenPVPTab();
            //  NewFunctionLogic.Instance().OpenActivityWithIndex(3);
        }
    }
Пример #9
0
    // 新手指引
    void Check_NewPlayerGuide()
    {
        if (NewFunctionLogic.Instance())
        {
            int nStep = NewFunctionLogic.Instance().NewPlayerGuideIndex;
            if (nStep == 11)
            {
                NewPlayerGuide(7);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            else if (nStep == 26)
            {
                NewPlayerGuide(8);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }

            // 黄昏要塞
            else if (nStep == 30)
            {
                NewPlayerGuide(30);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            // 机械研究所
            else if (nStep == 31)
            {
                NewPlayerGuide(31);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            // 雷纳包
            else if (nStep == 32)
            {
                NewPlayerGuide(32);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            // 冰冻地下
            else if (nStep == 33)
            {
                NewPlayerGuide(33);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            // 废弃都市
            else if (nStep == 34)
            {
                NewPlayerGuide(34);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
            // pvp
            else if (nStep == 35)
            {
                NewPlayerGuide(35);
                NewFunctionLogic.Instance().NewPlayerGuideIndex = -1;
            }
        }
    }
Пример #10
0
 public void SetPkLabel(bool IsPkModle)
 {
     if (!IsPkModle)
     {
         NewFunctionLogic.Instance().m_PKModleLable.text = "[9BFBF7]" + Utils.GetDicByID(10265) + "[-]";
     }
     else
     {
         NewFunctionLogic.Instance().m_PKModleLable.text = "[FF0000]" + Utils.GetDicByID(10264) + "[-]";
     }
 }
Пример #11
0
    // Use this for initialization
    void OnEnable()
    {
        //         if (null != m_TabController)
        //         {
        //             m_TabController.ChangeTab("Tab1");
        //         }
        SetInstance(this);

        InitData();


        UpdateTabTips();
        UpdateAutoTeam();

        Check_OnChangeTab();

        TestStartTab(m_HuoDongControl, m_TabController);
        OpenPVPTab(m_HuoDongControl);

        HideFeatureByLv();

        Check_NewPlayerGuide();

        AskVillainTimeAndOpenFlag();
#if BOBJOYSTICK
        UIRootJoyControllerHelper.Instance.setState(UIRootJoyControllerHelper.JoyUIState.ACTIVITY_UI);
#endif

        //暂时隐藏
        m_DailyMissionActiveWindow.gameObject.SetActive(false);
        _clearTabFunction();
        setTabFunction();
        _showTabFunction();

        //m_PVPWindow.SetActive(false);
        if (NewFunctionLogic.Instance().NewPlayerGuideIndex == 18 ||
            NewFunctionLogic.Instance().NewPlayerGuideIndex == 20 ||
            NewFunctionLogic.Instance().NewPlayerGuideIndex == 22 ||
            NewFunctionLogic.Instance().NewPlayerGuideIndex == 24 ||
            NewFunctionLogic.Instance().NewPlayerGuideIndex == 25)
        {
            if (null != m_HuoDongControl)
            {
                m_HuoDongControl.ChangeTab("Button2-JuQing");
            }
        }

        // 剧情黄点
        HuodongRedPoint();

        Messenger.AddListener(MessengerConst.OnUpdateCangjinggeAward, OnUpdateCangjinggeAward);
    }
Пример #12
0
 void ShowNewPlayerGuide()
 {
     if (NewFunctionLogic.Instance() &&
         NewFunctionLogic.Instance().NewPlayerGuideIndex == 16)
     {
         NewFunctionLogic.Instance().NewPlayerGuideIndex = 0;
         NewPlayerGuidLogic.OpenWindow(m_GuidePoint.transform.parent.FindChild("ModelView").gameObject, 450, 450,
                                       GCGame.Utils.GetDicByID(11470), "right", -1, true, true, false, null, null, 0, 0, true, false, () =>
         {
             NewPlayerGuidLogic.OpenWindow_Circle(m_GuidePoint, 100, "", "left", 0, true, true);
         });
     }
 }
Пример #13
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_RET_CHANGE_PKMODLE packet = (GC_RET_CHANGE_PKMODLE )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            Obj _obj = Singleton <ObjManager> .GetInstance().FindObjInScene(packet.ObjId);

            if (_obj == null)
            {
                return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
            }
            if (_obj.ObjType != GameDefine_Globe.OBJ_TYPE.OBJ_OTHER_PLAYER &&
                _obj.ObjType != GameDefine_Globe.OBJ_TYPE.OBJ_MAIN_PLAYER)
            {
                return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
            }
            Obj_OtherPlayer _player = _obj.GetComponent <Obj_OtherPlayer>();

            _player.PkModle = packet.PKModle;
            _player.OptChangPKModle();
            if (PKInfoSetLogic.Instance() != null)
            {
                PKInfoSetLogic.Instance().SwitchBtnState();
            }
            if (NewFunctionLogic.Instance() != null)
            {
                NewFunctionLogic.Instance().SetPkLabel(_player.PkModle == (int)CharacterDefine.PKMODLE.KILL);
            }
            if (FunctionButtonLogic.Instance() != null)
            {
                FunctionButtonLogic.Instance().UpdateNewFunctionButtonState(FunctionButtonLogic.DynamicLogo.PKModel);
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Пример #14
0
 void OnDestroy()
 {
     m_Instance = null;
 }