예제 #1
0
    void Awake()
    {
        m_instance = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);
    
        m_camLoginRewardGridList = m_myTransform.FindChild(m_widgetToFullName["LoginRewardGridListCamera"]).GetComponentsInChildren<Camera>(true)[0];
        m_dragableCameraLoginRewardGridList = m_camLoginRewardGridList.GetComponentsInChildren<MyDragableCamera>(true)[0];
        m_goLoginRewardGridList = m_myTransform.FindChild(m_widgetToFullName["LoginRewardGridList"]).gameObject;
        m_uilLoginTitle = m_myTransform.FindChild(m_widgetToFullName["LoginRewardDialogTitle"]).GetComponentsInChildren<UILabel>(true)[0];
        m_camLoginRewardGridList.GetComponentsInChildren<UIViewport>(true)[0].sourceCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0];

        // 提示箭头
        m_dragableCameraLoginRewardGridList.LeftArrow = FindTransform("LoginRewardUIArrowL").gameObject;
        m_dragableCameraLoginRewardGridList.RightArrow = FindTransform("LoginRewardUIArrowR").gameObject;

        Initialize();

        EventDispatcher.TriggerEvent(Events.OperationEvent.GetLoginMessage);
        // EventDispatcher.TriggerEvent(MarketEvent.DownloadLoginMarket);
    }
예제 #2
0
    void Awake()
    {
        m_instance    = this;
        m_myTransform = transform;
        FillFullNameData(m_myTransform);

        m_camLoginRewardGridList            = m_myTransform.FindChild(m_widgetToFullName["LoginRewardGridListCamera"]).GetComponentsInChildren <Camera>(true)[0];
        m_dragableCameraLoginRewardGridList = m_camLoginRewardGridList.GetComponentsInChildren <MyDragableCamera>(true)[0];
        m_goLoginRewardGridList             = m_myTransform.FindChild(m_widgetToFullName["LoginRewardGridList"]).gameObject;
        m_uilLoginTitle = m_myTransform.FindChild(m_widgetToFullName["LoginRewardDialogTitle"]).GetComponentsInChildren <UILabel>(true)[0];
        m_camLoginRewardGridList.GetComponentsInChildren <UIViewport>(true)[0].sourceCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren <Camera>(true)[0];

        // 提示箭头
        m_dragableCameraLoginRewardGridList.LeftArrow  = FindTransform("LoginRewardUIArrowL").gameObject;
        m_dragableCameraLoginRewardGridList.RightArrow = FindTransform("LoginRewardUIArrowR").gameObject;

        Initialize();

        EventDispatcher.TriggerEvent(Events.OperationEvent.GetLoginMessage);
        // EventDispatcher.TriggerEvent(MarketEvent.DownloadLoginMarket);
    }