Beispiel #1
0
    /// <summary>
    /// 点击
    /// </summary>
    /// <param name="eventType"></param>
    /// <param name="data"></param>
    /// <param name="param"></param>
    private void OnGuardGridUIEvent(UIEventType eventType, object data, object param)
    {
        if (eventType == UIEventType.Click)
        {
            UINvWaGuardGrid grid = data as UINvWaGuardGrid;
            if (grid != null)
            {
                uint btnIndex = (uint)param;

                if (btnIndex == 1)
                {
                    NWManager.ReqNvWaBuyGuard(grid.m_guardData.id);
                }

                if (btnIndex == 2)
                {
                    NWManager.ReqNvWaLvUpGuard(grid.m_guardData.id);
                }
            }
        }
    }