コード例 #1
0
    // 阵型激活信息
    void OnActiveMatrixClick()
    {
        // 新手指引直接去掉
//         if (m_NewPlayerGuide_Step == 0)
//         {
//             NewPlayerGuidLogic.CloseWindow();
//             m_NewPlayerGuide_Step = -1;
//         }

        if (null == m_curSelectMatrix)
        {
            return;
        }

        int matrixID;

        if (!int.TryParse(m_curSelectMatrix.gameObject.name, out matrixID))
        {
            LogModule.ErrorLog("can not parse cur matrixID:" + matrixID);
            return;
        }

        CG_BELLE_ACTIVEMATRIX activeMatrixRequest = (CG_BELLE_ACTIVEMATRIX)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BELLE_ACTIVEMATRIX);

        activeMatrixRequest.SetMatrixID(matrixID);
        activeMatrixRequest.SendPacket();
    }