예제 #1
0
    protected override void OnShow(object data)
    {
        base.OnShow(data);
        m_currTaskData = null;
        Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.TASK_MAIN_ARROWHIDE, null);

        m_trans_select.gameObject.SetActive(false);
        if (data is GameCmd.stRequestSubmitListScriptUserCmd_CS)
        {
            m_currTaskData = data as GameCmd.stRequestSubmitListScriptUserCmd_CS;
            ShowItemList(m_currTaskData.itemid);
        }
    }
예제 #2
0
    protected override void OnHide()
    {
        base.OnHide();
        m_trans_select.transform.parent = m_grid_root.transform;
        m_selectdata   = null;
        m_currTaskData = null;

        int count = m_lstUIItem.Count;

        while (count > 0)
        {
            m_lstUIItem[0].Release();
            m_lstUIItem.RemoveAt(0);
            count = m_lstUIItem.Count;
        }
        m_lstUIItem.Clear();
    }