public void OnSubAwardData(byte[] pBuffer, ushort wDataSize)
        {
            Debug.LogWarning("------------OnSubAwardData");
            var typeValue = typeof(CMD_S_AwardResult);

            if (wDataSize != Marshal.SizeOf(typeValue))
            {
                Debug.LogError("数据长度不符合");
                return;
            }
            CMD_S_AwardResult pNetInfo = (CMD_S_AwardResult)StructConverterByteArray.BytesToStruct(pBuffer, typeValue);
            string            strLog   = GlobalUserInfo.GBToUtf8(pNetInfo.szNotifyContent);

            Debug.Log("OnSubAwardData: " + strLog);
            GlobalUserInfo    pGlobalUserInfo = GlobalUserInfo.GetInstance();
            tagGlobalUserData pGlobalUserData = pGlobalUserInfo.GetGlobalUserData();

            if (pNetInfo.bSuccessed == 0)  //成功
            {
                //Success
                if (pNetInfo.cbCostType == 0)  //奖励金币
                {
                    GlobalUserInfo.setUserScore(pNetInfo.lScore);
                    GameSceneUIHandler.ShowLog("奖励10枚金币");
                }
                else  //奖励钻石
                {
                    GlobalUserInfo.setUserInsure(pNetInfo.lScore);
                    GameSceneUIHandler.ShowLog("奖励10颗钻石");
                }
                Loom.QueueOnMainThread(() =>
                {
                    if (UIManager.GetInstance() != null)
                    {
                        UIManager.GetInstance().UpdateUIInfo();   //更新钻石金币
                    }
                });
            }
        }
        public void OnSubInventoryConsumption(byte[] pBuffer, ushort wDataSize)
        {
            Debug.LogWarning("------------OnSubInventoryConsumption");
            var typeValue = typeof(CMD_S_InventoryConsumptionInfoResult);

            if (wDataSize != Marshal.SizeOf(typeValue))
            {
                Debug.LogError("数据长度不符合");
                return;
            }
            CMD_S_InventoryConsumptionInfoResult InfoResult = (CMD_S_InventoryConsumptionInfoResult)StructConverterByteArray.BytesToStruct(pBuffer, typeValue);
            string str = GlobalUserInfo.GBToUtf8(InfoResult.szDescribeString);

            Debug.Log("onSubInventoryConsumptionResult: " + str);
            if (InfoResult.cbSuccess == 0)  //成功
            {
                long ScoreNow = 0;
                if (InfoResult.cbCostType == 0) //金币
                {
                    ScoreNow = GlobalUserInfo.getUserScore();
                    GlobalUserInfo.setUserScore(InfoResult.dwFinalScore);
                }
                else                            //钻石
                {
                    ScoreNow = GlobalUserInfo.getUserInsure();
                    GlobalUserInfo.setUserInsure(InfoResult.dwFinalScore);
                }

                Loom.QueueOnMainThread(() =>
                {
                    if (InfoResult.cbItemID == (byte)ControlManager.InventoryItemID.Stealth)  //开启隐身冷却时间
                    {
                        if (UIManager.GetInstance() != null)
                        {
                            UIManager.GetInstance().StartColdTime(ControlManager.GetInstance().StealthButton, 60);
                        }
                    }
                    if (UIManager.GetInstance() != null)
                    {
                        UIManager.GetInstance().UpdateUIInfo(); //更新钻石金币
                        if (InfoResult.cbCostType == 0)         //金币
                        {
                            if (ScoreNow != GlobalUserInfo.getUserScore())
                            {
                                UIManager.GetInstance().ShowMiddleTips(str);
                            }
                        }
                        else                            //钻石
                        {
                            if (ScoreNow != GlobalUserInfo.getUserInsure())
                            {
                                UIManager.GetInstance().ShowMiddleTips(str);
                            }
                        }
                    }
                });
            }
            else
            {
                GameSceneUIHandler.ShowLog(str);
            }
        }