// 全部上菜
    void OnServingAllClick()
    {
        //Singleton<ObjManager>.GetInstance().MainPlayer.ReqViewOtherPlayer(Singleton<ObjManager>.GetInstance().MainPlayer.GUID, OtherRoleViewLogic.OPEN_TYPE.OPEN_TYPE_LASTSPEAKER);

        if (!m_bSelfData)
        {
            GUIData.AddNotifyData("#{2017}");
            return;
        }

        m_curOperationDesk = null;

        bool isAvailable = false;

        for (int i = 0; i < m_Desks.Length; i++)
        {
            if (m_Desks[i].GetComponent <RestaurantDesk>().IsAvailable())
            {
                isAvailable = true;
                break;
            }
        }

        if (!isAvailable)
        {
            GUIData.AddNotifyData("#{11379}");
            return;
        }

        if (m_FoodWindow != null)
        {
            m_FoodWindow.SetActive(true);
            m_FoodWindow.GetComponent <RestaurantFoodWindow>().FilterFood(false);
        }
    }
 public void CloseFoodWindow()
 {
     m_curOperationDesk = null;
     if (m_FoodWindow != null)
     {
         m_FoodWindow.SetActive(false);
     }
 }
 /// <summary>
 ///  // 打开准备食物界面,只有自己酒楼才有此功能
 /// </summary>
 /// <param name="curDesk"></param>
 public void OpenFoodWindow(RestaurantDesk curDesk)
 {
     if (!m_bSelfData)
     {
         GUIData.AddNotifyData("#{2017}");
         return;
     }
     m_curOperationDesk = curDesk;
     if (m_FoodWindow != null)
     {
         m_FoodWindow.SetActive(true);
     }
 }
    public void BillingDesk(RestaurantDesk curDesk)
    {
        if (!m_bSelfData)
        {
            GUIData.AddNotifyData("#{2017}");
            return;
        }
        if (null == curDesk)
        {
            LogModule.ErrorLog("curDesk is null");
            return;
        }
        CG_RESTAURANT_BILLINGALL packet = (CG_RESTAURANT_BILLINGALL)PacketDistributed.CreatePacket(MessageID.PACKET_CG_RESTAURANT_BILLINGALL);

        packet.None = 0;
        packet.SetDeskIndex(curDesk.Index);
        packet.SendPacket();

        GameManager.gameManager.SoundManager.PlaySoundEffect(118);  //check
    }
    // 上菜操作
    public void OnChooseFoodFinish(int foodID)
    {
        if (!m_bSelfData)
        {
            GUIData.AddNotifyData("#{2017}");
            return;
        }
        if (m_FoodWindow != null)
        {
            m_FoodWindow.SetActive(false);
        }

        GameManager.gameManager.SoundManager.PlaySoundEffect(134);

        CG_RESTAURANT_PREPAREFOOD packet = (CG_RESTAURANT_PREPAREFOOD)PacketDistributed.CreatePacket(MessageID.PACKET_CG_RESTAURANT_PREPAREFOOD);

        if (null != m_curOperationDesk)
        {
            packet.SetDeskIndex(m_curOperationDesk.Index);
            m_curOperationDesk = null;
        }
        packet.SetFoodID(foodID);
        packet.SendPacket();
    }
 public void FinishPrepareDesk(RestaurantDesk curDesk)
 {
 }