Exemplo n.º 1
0
        public void CbGetBagData(UnityGMClient.EGetBagDataResult retCode, UnityGMClient.CBagData bagData)
        {
            string lg = "[CbInitBagData][retCode=" + retCode.ToString() + "][bagData.BagSize=" + bagData.BagSize + "]\r\n";

            Log(lg);
            if (retCode != UnityGMClient.EGetBagDataResult.EINITPACKAGEDATA_RESUlT_SUCCESS)
            {
                lg = "[CbInitBagData][retCode=" + retCode.ToString() + "]\r\n";
                Log(lg);
                return;
            }

            setBagData(bagData);
        }
Exemplo n.º 2
0
        private void CbGetBagData(UnityGMClient.EGetBagDataResult retCode, UnityGMClient.CBagData bagData)
        {
            string lg = "[CbInitBagData][retCode=" + retCode.ToString() + "][bagData.BagSize=" + bagData.BagSize + "]\r\n";

            Log(lg);
            if (retCode != UnityGMClient.EGetBagDataResult.EINITPACKAGEDATA_RESUlT_SUCCESS)
            {
                lg = "[CbInitBagData][retCode=" + retCode.ToString() + "]\r\n";
                Log(lg);
                return;
            }

            GC.CPlayer.Singleton.CbGetBagData(retCode, bagData);
            textBoxShow.Text = GC.CPlayer.Singleton.getBagDataToLogString();
        }