public void SelectGem(Gems gem)
 {
     AllSelectedGems.Add(gem.id);
     if (LastSelectedHoleButtonName != "")
     {
         SelectedGemdata = gem;
         CurMessage      = SendServiceMessageType.SendInlayGem;
     }
 }
    void MessageBoxButton(GameObject btn)
    {
        switch (btn.name)
        {
        case "Btn_Close":
            _box.Close();
            break;

        case "Btn_Remove":
            CurMessage = SendServiceMessageType.SendRemoveGem;
            _box.Close();
            break;

        case "Btn_Replace":
            ForgingRoomUI.Instance.Visible = false;
            DBUIController.mDBUIInstance.SetViewState(RUIType.EMViewState.S_Bag, RUIType.EMBoxType.SELECT_GEM_INLAY);
            _box.Close();
            break;
        }
    }
    void Update()
    {
        switch (CurMessage)
        {
        case SendServiceMessageType.SendInlayGem:

            /*向服务器发送镶嵌宝石信息
             * */
            SendInlayMsg();
            CurMessage = SendServiceMessageType.None;
            break;

        case SendServiceMessageType.SendRemoveGem:
            /*向服务器发送摘除宝石信息
             * */
            SendRemoveMsg();
            CurMessage = SendServiceMessageType.None;
            break;
        }
    }