void Awake()
    {
        m_instance    = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);

        Camera camera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren <Camera>(true)[0];

        m_camActivityGridList = FindTransform("TimeLimitActivityGridListCamera").GetComponentsInChildren <Camera>(true)[0];
        m_camActivityGridList.GetComponentsInChildren <UIViewport>(true)[0].sourceCamera = camera;
        m_dragableCameraActivityGridList            = m_camActivityGridList.GetComponentsInChildren <MyDragableCamera>(true)[0];
        m_dragableCameraActivityGridList.LeftArrow  = FindTransform("TimeLimitActivityUIActivityListArrowL").gameObject;
        m_dragableCameraActivityGridList.RightArrow = FindTransform("TimeLimitActivityUIActivityListArrowR").gameObject;
        m_goActivityGridList = FindTransform("TimeLimitActivityGridList").gameObject;
        m_goTimeLimitActivityUIActivityListUI     = FindTransform("TimeLimitActivityUIActivityList").gameObject;
        m_goGOTimeLimitActivityUIActivityListPage = FindTransform("GOTimeLimitActivityUIActivityListPage").gameObject;

        m_goTimeLimitActivityUIActivityInfoListUI = FindTransform("TimeLimitActivityUIActivityInfoList").gameObject;
        m_tranTimeLimitActivityInfoGridList       = FindTransform("TimeLimitActivityInfoGridList");
        m_infoGridListMogoListImproved            = m_tranTimeLimitActivityInfoGridList.GetComponentsInChildren <MogoListImproved>(true)[0];
        m_infoGridListMogoListImproved.LeftArrow  = FindTransform("TimeLimitActivityUIActivityInfoArrowL").gameObject;
        m_infoGridListMogoListImproved.RightArrow = FindTransform("TimeLimitActivityUIActivityInfoArrowR").gameObject;

        m_timeLimitActivityGridListCameraFX = FindTransform("TimeLimitActivityGridListCameraFX").GetComponentsInChildren <Camera>(true)[0];
        m_timeLimitActivityGridListCameraFX.GetComponentsInChildren <UIViewport>(true)[0].sourceCamera = camera;
        m_goTimeLimitActivityGridListParticleAnimRoot = FindTransform("TimeLimitActivityGridListParticleAnimRoot").gameObject;

        m_goTimeLimitActivityInfoGridListFx = FindTransform("TimeLimitActivityInfoGridListFx").gameObject;

        Initialize();

        EventDispatcher.TriggerEvent(Events.OperationEvent.GetActivityMessage);
    }
    void Awake()
    {
        m_instance = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);

        Camera camera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0];

        m_camActivityGridList = FindTransform("TimeLimitActivityGridListCamera").GetComponentsInChildren<Camera>(true)[0];
        m_camActivityGridList.GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = camera;
        m_dragableCameraActivityGridList = m_camActivityGridList.GetComponentsInChildren<MyDragableCamera>(true)[0];
        m_dragableCameraActivityGridList.LeftArrow = FindTransform("TimeLimitActivityUIActivityListArrowL").gameObject;
        m_dragableCameraActivityGridList.RightArrow = FindTransform("TimeLimitActivityUIActivityListArrowR").gameObject;
        m_goActivityGridList = FindTransform("TimeLimitActivityGridList").gameObject;
        m_goTimeLimitActivityUIActivityListUI = FindTransform("TimeLimitActivityUIActivityList").gameObject;
        m_goGOTimeLimitActivityUIActivityListPage = FindTransform("GOTimeLimitActivityUIActivityListPage").gameObject;

        m_goTimeLimitActivityUIActivityInfoListUI = FindTransform("TimeLimitActivityUIActivityInfoList").gameObject;
        m_tranTimeLimitActivityInfoGridList = FindTransform("TimeLimitActivityInfoGridList");
        m_infoGridListMogoListImproved = m_tranTimeLimitActivityInfoGridList.GetComponentsInChildren<MogoListImproved>(true)[0];
        m_infoGridListMogoListImproved.LeftArrow = FindTransform("TimeLimitActivityUIActivityInfoArrowL").gameObject;
        m_infoGridListMogoListImproved.RightArrow = FindTransform("TimeLimitActivityUIActivityInfoArrowR").gameObject;

        m_timeLimitActivityGridListCameraFX = FindTransform("TimeLimitActivityGridListCameraFX").GetComponentsInChildren<Camera>(true)[0];
        m_timeLimitActivityGridListCameraFX.GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = camera;
        m_goTimeLimitActivityGridListParticleAnimRoot = FindTransform("TimeLimitActivityGridListParticleAnimRoot").gameObject;

        m_goTimeLimitActivityInfoGridListFx = FindTransform("TimeLimitActivityInfoGridListFx").gameObject;

        Initialize();

        EventDispatcher.TriggerEvent(Events.OperationEvent.GetActivityMessage);
    }   
Exemplo n.º 3
0
    void Awake()
    {
        m_instance    = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);

        m_tranRankingUITabList    = m_myTransform.Find(m_widgetToFullName["RankingUITabList"]);
        m_tabMogoSingleButtonList = m_tranRankingUITabList.GetComponentsInChildren <MogoSingleButtonList>(true)[0];
        m_tabMogoListImproved     = m_tranRankingUITabList.GetComponentsInChildren <MogoListImproved>(true)[0];

        m_tranRankingUIMainRankDataList    = m_myTransform.Find(m_widgetToFullName["RankingUIMainRankDataList"]);
        m_mainRankDataMogoSingleButtonList = m_tranRankingUIMainRankDataList.GetComponentsInChildren <MogoSingleButtonList>(true)[0];
        m_mainRankDataMogoListImproved     = m_tranRankingUIMainRankDataList.GetComponentsInChildren <MogoListImproved>(true)[0];

        m_tranRankingUIPlayerRankDataList = m_myTransform.Find(m_widgetToFullName["RankingUIPlayerRankDataList"]);
        m_playerRankDataMogoListImproved  = m_tranRankingUIPlayerRankDataList.GetComponentsInChildren <MogoListImproved>(true)[0];
        m_lblRankingUIBtnBecameFSText     = m_myTransform.Find(m_widgetToFullName["RankingUIBtnBecameFSText"]).GetComponentsInChildren <UILabel>(true)[0];

        m_listRankingUIMainRankTitle.Add(m_myTransform.Find(m_widgetToFullName["RankingUIMainRankTitle1"]).GetComponentsInChildren <UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.Find(m_widgetToFullName["RankingUIMainRankTitle2"]).GetComponentsInChildren <UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.Find(m_widgetToFullName["RankingUIMainRankTitle3"]).GetComponentsInChildren <UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.Find(m_widgetToFullName["RankingUIMainRankTitle4"]).GetComponentsInChildren <UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.Find(m_widgetToFullName["RankingUIMainRankTitle5"]).GetComponentsInChildren <UILabel>(true)[0]);
        for (int i = 0; i < m_listRankingUIMainRankTitle.Count; i++)
        {
            m_listRankingUIMainRankTitle[i].effectStyle = UILabel.Effect.None;
            m_listRankingUIMainRankTitle[i].color       = new Color32(63, 27, 4, 255);
        }

        m_lblRankingUIMyRankText = m_myTransform.Find(m_widgetToFullName["RankingUIMyRankText"]).GetComponentsInChildren <UILabel>(true)[0];

        m_goGORankingUIMainRankData     = m_myTransform.Find(m_widgetToFullName["GORankingUIMainRankData"]).gameObject;
        m_goGORankingUIPanelPlayerInfo  = m_myTransform.Find(m_widgetToFullName["GORankingUIPanelPlayerInfo"]).gameObject;
        m_goGORankingUIPanelPlayerEquip = m_myTransform.Find(m_widgetToFullName["GORankingUIPanelPlayerEquip"]).gameObject;

        m_goRankingUIModelShowCase = m_myTransform.Find(m_widgetToFullName["RankingUIModelShowCase"]).gameObject;
        m_modelShowCase            = m_goRankingUIModelShowCase.AddComponent <ModelShowCase>();
        m_modelShowCase.left       = m_myTransform.Find(m_widgetToFullName["RankingUIModelViewTopLeft"]);
        m_modelShowCase.right      = m_myTransform.Find(m_widgetToFullName["RankingUIModelViewBottomRight"]);

        m_goRankingUIMyRankShowReward = m_myTransform.Find(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject;

        m_goGORankingUIWaitingTip      = m_myTransform.Find(m_widgetToFullName["GORankingUIWaitingTip"]).gameObject;
        m_goRankingUIMainRankDataArrow = m_myTransform.Find(m_widgetToFullName["RankingUIMainRankDataArrow"]).gameObject;


        m_goPanelPlayerEquip = m_myTransform.Find(m_widgetToFullName["PanelPlayerEquip"]).gameObject;
        m_panelPlayerEquip   = m_goPanelPlayerEquip.AddComponent <PanelPlayerEquip>();

        m_myTransform.Find(m_widgetToFullName["RankingUIBtnClose"]).gameObject.AddComponent <RankingUIButton>();
        m_myTransform.Find(m_widgetToFullName["RankingUIBtnBackToRank"]).gameObject.AddComponent <RankingUIButton>();
        m_myTransform.Find(m_widgetToFullName["RankingUIBtnBecameFS"]).gameObject.AddComponent <RankingUIButton>();
        m_myTransform.Find(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject.AddComponent <RankingUIButton>();

        Initialize();
    }
Exemplo n.º 4
0
    void Awake()
    {
        m_instance = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);

        m_tranRankingUITabList = m_myTransform.FindChild(m_widgetToFullName["RankingUITabList"]);
        m_tabMogoSingleButtonList = m_tranRankingUITabList.GetComponentsInChildren<MogoSingleButtonList>(true)[0];
        m_tabMogoListImproved = m_tranRankingUITabList.GetComponentsInChildren<MogoListImproved>(true)[0];

        m_tranRankingUIMainRankDataList = m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankDataList"]);
        m_mainRankDataMogoSingleButtonList = m_tranRankingUIMainRankDataList.GetComponentsInChildren<MogoSingleButtonList>(true)[0];
        m_mainRankDataMogoListImproved = m_tranRankingUIMainRankDataList.GetComponentsInChildren<MogoListImproved>(true)[0];

        m_tranRankingUIPlayerRankDataList = m_myTransform.FindChild(m_widgetToFullName["RankingUIPlayerRankDataList"]);
        m_playerRankDataMogoListImproved = m_tranRankingUIPlayerRankDataList.GetComponentsInChildren<MogoListImproved>(true)[0];
        m_lblRankingUIBtnBecameFSText = m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBecameFSText"]).GetComponentsInChildren<UILabel>(true)[0];

        m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle1"]).GetComponentsInChildren<UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle2"]).GetComponentsInChildren<UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle3"]).GetComponentsInChildren<UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle4"]).GetComponentsInChildren<UILabel>(true)[0]);
        m_listRankingUIMainRankTitle.Add(m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankTitle5"]).GetComponentsInChildren<UILabel>(true)[0]);
        for (int i = 0; i < m_listRankingUIMainRankTitle.Count; i++)
        {
            m_listRankingUIMainRankTitle[i].effectStyle = UILabel.Effect.None;
            m_listRankingUIMainRankTitle[i].color = new Color32(63, 27, 4, 255);
        }

        m_lblRankingUIMyRankText = m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankText"]).GetComponentsInChildren<UILabel>(true)[0];

        m_goGORankingUIMainRankData = m_myTransform.FindChild(m_widgetToFullName["GORankingUIMainRankData"]).gameObject;
        m_goGORankingUIPanelPlayerInfo = m_myTransform.FindChild(m_widgetToFullName["GORankingUIPanelPlayerInfo"]).gameObject;
        m_goGORankingUIPanelPlayerEquip = m_myTransform.FindChild(m_widgetToFullName["GORankingUIPanelPlayerEquip"]).gameObject;

        m_goRankingUIModelShowCase = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelShowCase"]).gameObject;
        m_modelShowCase = m_goRankingUIModelShowCase.AddComponent<ModelShowCase>();
        m_modelShowCase.left = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelViewTopLeft"]);
        m_modelShowCase.right = m_myTransform.FindChild(m_widgetToFullName["RankingUIModelViewBottomRight"]);

        m_goRankingUIMyRankShowReward = m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject;

        m_goGORankingUIWaitingTip = m_myTransform.FindChild(m_widgetToFullName["GORankingUIWaitingTip"]).gameObject;
        m_goRankingUIMainRankDataArrow = m_myTransform.FindChild(m_widgetToFullName["RankingUIMainRankDataArrow"]).gameObject;


        m_goPanelPlayerEquip = m_myTransform.FindChild(m_widgetToFullName["PanelPlayerEquip"]).gameObject;
        m_panelPlayerEquip = m_goPanelPlayerEquip.AddComponent<PanelPlayerEquip>();

        m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnClose"]).gameObject.AddComponent<RankingUIButton>();
        m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBackToRank"]).gameObject.AddComponent<RankingUIButton>();
        m_myTransform.FindChild(m_widgetToFullName["RankingUIBtnBecameFS"]).gameObject.AddComponent<RankingUIButton>();
        m_myTransform.FindChild(m_widgetToFullName["RankingUIMyRankShowReward"]).gameObject.AddComponent<RankingUIButton>();

        Initialize();
    }
Exemplo n.º 5
0
    void Awake()
    {
        m_transform = transform;

        m_vipInfo                           = m_transform.Find("VIPInfo").gameObject;
        m_vipInfoNext                       = m_transform.Find("VIPInfoNext").gameObject;
        m_listImproveVIPInfo                = m_vipInfo.GetComponentsInChildren <MogoListImproved>(true)[0];
        m_listImproveVIPInfo.LeftArrow      = m_transform.Find("VIPInfoUIArrow/VIPInfoUIArrowL").gameObject;
        m_listImproveVIPInfo.RightArrow     = m_transform.Find("VIPInfoUIArrow/VIPInfoUIArrowR").gameObject;
        m_listImproveVIPInfoNext            = m_vipInfoNext.GetComponentsInChildren <MogoListImproved>(true)[0];
        m_listImproveVIPInfoNext.LeftArrow  = m_transform.Find("VIPInfoUIArrow/VIPInfoUIArrowL").gameObject;
        m_listImproveVIPInfoNext.RightArrow = m_transform.Find("VIPInfoUIArrow/VIPInfoUIArrowR").gameObject;

        m_btnClose         = m_transform.Find("btnClose").gameObject;
        m_lblVIPLevel      = m_transform.Find("VIPHead/lblVIPlevel").GetComponentsInChildren <UILabel>(true)[0];
        m_lblCharge        = m_transform.Find("lblCharge").GetComponentsInChildren <UILabel>(true)[0];
        m_lblProgress      = m_transform.Find("ProgressBar/txtProgress").GetComponentsInChildren <UILabel>(true)[0];
        m_progress         = m_transform.Find("ProgressBar").GetComponentsInChildren <UISlider>(true)[0];
        m_goVIPUINextLevel = m_transform.Find("VIPUINextLevel").gameObject;
        m_spNextLevel1     = m_transform.Find("VIPUINextLevel/VIPUINextLevel1").GetComponentsInChildren <UISprite>(true)[0];
        m_spNextLevel2     = m_transform.Find("VIPUINextLevel/VIPUINextLevel2").GetComponentsInChildren <UISprite>(true)[0];
        m_spLevel          = m_transform.Find("VIPHead/imgVIPLevel").GetComponentsInChildren <UISprite>(true)[0];
        m_spLevel2         = m_transform.Find("VIPHead/imgVIPLevel2").GetComponentsInChildren <UISprite>(true)[0];
        m_tranBtnCharge    = m_transform.Find("btnCharge");

        m_spResCtrl      = m_transform.Find("vipUIRefreshCtrl").GetComponentsInChildren <UISprite>(true)[0];
        m_atlsCanRelease = m_spResCtrl.atlas;

        AddButtonListener("OnClicked", "btnClose", OnClose);
        AddButtonListener("OnClicked", "Tab/btnTabCurrent", OnCurrent);
        AddButtonListener("OnClicked", "Tab/btnTabNext", OnNext);
        AddButtonListener("OnClicked", "btnCharge", OnCharge);
        gameObject.SetActive(false);

        Initialize();
    }
Exemplo n.º 6
0
    void Awake()
    {
        m_transform = transform;

        m_vipInfo = m_transform.FindChild("VIPInfo").gameObject;
        m_vipInfoNext = m_transform.FindChild("VIPInfoNext").gameObject;
        m_listImproveVIPInfo = m_vipInfo.GetComponentsInChildren<MogoListImproved>(true)[0];
        m_listImproveVIPInfo.LeftArrow = m_transform.FindChild("VIPInfoUIArrow/VIPInfoUIArrowL").gameObject;
        m_listImproveVIPInfo.RightArrow = m_transform.FindChild("VIPInfoUIArrow/VIPInfoUIArrowR").gameObject;
        m_listImproveVIPInfoNext = m_vipInfoNext.GetComponentsInChildren<MogoListImproved>(true)[0];
        m_listImproveVIPInfoNext.LeftArrow = m_transform.FindChild("VIPInfoUIArrow/VIPInfoUIArrowL").gameObject;
        m_listImproveVIPInfoNext.RightArrow = m_transform.FindChild("VIPInfoUIArrow/VIPInfoUIArrowR").gameObject;

        m_btnClose = m_transform.FindChild("btnClose").gameObject;
        m_lblVIPLevel = m_transform.FindChild("VIPHead/lblVIPlevel").GetComponentsInChildren<UILabel>(true)[0];
        m_lblCharge = m_transform.FindChild("lblCharge").GetComponentsInChildren<UILabel>(true)[0];
        m_lblProgress = m_transform.FindChild("ProgressBar/txtProgress").GetComponentsInChildren<UILabel>(true)[0];
        m_progress = m_transform.FindChild("ProgressBar").GetComponentsInChildren<UISlider>(true)[0];
        m_goVIPUINextLevel = m_transform.FindChild("VIPUINextLevel").gameObject;
        m_spNextLevel1 = m_transform.FindChild("VIPUINextLevel/VIPUINextLevel1").GetComponentsInChildren<UISprite>(true)[0];
        m_spNextLevel2 = m_transform.FindChild("VIPUINextLevel/VIPUINextLevel2").GetComponentsInChildren<UISprite>(true)[0];
        m_spLevel = m_transform.FindChild("VIPHead/imgVIPLevel").GetComponentsInChildren<UISprite>(true)[0];
        m_spLevel2 = m_transform.FindChild("VIPHead/imgVIPLevel2").GetComponentsInChildren<UISprite>(true)[0];
        m_tranBtnCharge = m_transform.FindChild("btnCharge");

        m_spResCtrl = m_transform.FindChild("vipUIRefreshCtrl").GetComponentsInChildren<UISprite>(true)[0];
        m_atlsCanRelease = m_spResCtrl.atlas;

        AddButtonListener("OnClicked", "btnClose", OnClose);
        AddButtonListener("OnClicked", "Tab/btnTabCurrent", OnCurrent);
        AddButtonListener("OnClicked", "Tab/btnTabNext", OnNext);
        AddButtonListener("OnClicked", "btnCharge", OnCharge);
        gameObject.SetActive(false);

        Initialize();
    }