Пример #1
0
        public int RemoveVisitorFromVisitQueue(int entityID)
        {
#if UNITY_EDITOR
            if (entityID == Const.Invalid_Int)
            {
                string e = "entityID 异常";
                throw new System.Exception(e);
            }
#endif

            int idx = visitQueue.IndexOf(entityID);

#if UNITY_EDITOR
            if (idx < 0)
            {
                for (int i = 0; i < visitQueue.Count; i++)
                {
                    LogWarp.LogError(visitQueue[i]);
                }
                string e = string.Format("观光位上没有这个游客 {0}", entityID);
                throw new System.Exception(e);
            }
#endif
            visitQueue[idx] = Const.Invalid_Int;

            return(idx);
        }
    /// <summary>
    /// 点击利润按钮事件
    /// </summary>
    public void OnClickUpGrade_ProfitCoins(string str)
    {
        //isLongPress为true则是长按状态,单点关闭  返回
        if (!JudgePressButton_Profit() && isLongPress)
        {
            LogWarp.LogError("不能升级");
            return;
        }
        /*  新手引导  */
        if (GlobalDataManager.GetInstance().playerData.playerZoo.isGuide == true)
        {
            if (profitLevel >= 5)
            {
                return;
            }
        }
        SendSetParkingLevelMessageManager();
        isGetCoin = false;  //设置等待回复状态
        //upGradeButton.enabled = false; //设置按钮不能点击
        ///播放音乐
        string btnSoundPath = Config.globalConfig.getInstace().BuildUpButtonMusic;

        SoundManager.GetInstance().PlaySound(btnSoundPath);

        //LogWarp.LogError("测试             单点  按钮         ");
    }
    /// <summary>
    /// 升级某个动物栏门票等级
    /// </summary>
    /// <param name="obj"></param>
    private void OnClickTestLittleZooUpLvButton(string obj)
    {
        LogWarp.LogError(" 升级某个动物栏门票等级 ");

        if (littleZooID != UFrame.Const.Invalid_Int)
        {
            //转换成功, 输出数字
            var level      = playerData.GetLittleZooModuleData(littleZooID).littleZooTicketsLevel;
            var ticketCell = Config.buildupConfig.getInstace().getCell(littleZooID);
            //获取当前需要升级的级别
            int needUpLV = GetNeedUpLv(ticketCell.lvshage, level);
            //发送消息
            //发送消息       SetValueOfPlayerData  消息体
            SetDetailValueOfPlayerData.Send((int)GameMessageDefine.SetLittleZooTicketsLevelPlayerData,
                                            littleZooID, needUpLV, 0);
            //提升升级成功
            PromptText.CreatePromptText_TestUI("开始升级动物栏门票等级+" + needUpLV);
            isButton = false;
        }
        else
        {
            //转换失败, 字符串不是只是数字
            PromptText.CreatePromptText_TestUI("升级动物栏前先点击下动物栏");
        }
    }
Пример #4
0
    private void OnGetIsLockAdsSucceedBool(bool isBool)
    {
#if TEST_NO_AD_SHOW
        isBool = true;
#endif
        Config.monitorCell cell;

        if (isBool == true)
        {
            switch (condition)
            {
            case "TouristButton":
                LogWarp.LogError("测试    进入观看广告时间  touristButton ");
                EntityShip.GetoffVisitor(numberVisitor);       //轮船游客到来
                playerData.playerZoo.playerNumberOfVideosWatched.SetNumberOfVideoViews(AdTagFM.Add_Tourist_Advert);

                AdWatchComplete.Send(AdWatchComplete.AdType_RewardedVideo, AdTagFM.Add_Tourist_Advert.ToString());

                break;

            case "VisitButton":
                BroadcastNum.Send((int)GameMessageDefine.AddBuff, 10, 0, 0);        //动物栏观光时间
                playerData.playerZoo.playerNumberOfVideosWatched.SetNumberOfVideoViews(AdTagFM.Add_Visit_Advert);

                MessageManager.GetInstance().Send((int)GameMessageDefine.ImmediateFinishVisitCD);
                break;

            case "TicketButton":
                BroadcastNum.Send((int)GameMessageDefine.AddBuff, 12, 0, 0);        //售票口时间
                playerData.playerZoo.playerNumberOfVideosWatched.SetNumberOfVideoViews(AdTagFM.Add_Ticket_Advert);

                AdWatchComplete.Send(AdWatchComplete.AdType_RewardedVideo, AdTagFM.Add_Ticket_Advert.ToString());
                MessageManager.GetInstance().Send((int)GameMessageDefine.ImmediateFinishEntryGateCheckInCD);;
                break;

            case "FreeItemButton":
                SetValueOfPlayerData.Send((int)GameMessageDefine.AddCoinOfPlayerDataMSSC, 0, freeItemRwdCoinQuantity, 0);     //贵宾定时广告
                GameManager.GetInstance().StartCoroutine(FinishMoneyEffect());
                playerData.playerZoo.playerNumberOfVideosWatched.SetNumberOfVideoViews(AdTagFM.Add_Viptiming_Advert);
                AdWatchComplete.Send(AdWatchComplete.AdType_RewardedVideo, AdTagFM.Add_Viptiming_Advert.ToString());

                break;

            default:
                break;
            }
            playerNumberOfVideosWatched = playerData.playerZoo.playerNumberOfVideosWatched;
            //利用dotweeen做延时操作 防止穿透
            float timeCount = 0.1f;
            DOTween.To(() => timeCount, a => timeCount = a, 0.1f, 0.1f).OnComplete(new TweenCallback(delegate
            {
                this.Hide();
            }));
        }
        else
        {
            LogWarp.LogError("测试: 视频播放  失败");
        }
    }
Пример #5
0
        /// <summary>
        /// 小游戏失败
        /// </summary>
        /// <param name="obj"></param>
        private void OnGetCrossRoadGameFailure(Message obj)
        {
            gameModules.Stop();
            //弹出UI  失败
            LogWarp.LogError("游戏失败");

            PageMgr.ShowPage <UIGameFailPage>();
        }
    /// <summary>
    /// 测试不包含buff的/m
    /// </summary>
    private void OnTestNoBuff()
    {
        var incomeCoinMS01 = PlayerDataModule.CurrScenePerMinCoin(true);
        var incomeCoinMS02 = PlayerDataModule.LeaveScenePerMinCoin(1, true);

        LogWarp.LogError("测试:    附带buff的" + MinerBigInt.ToDisplay(incomeCoinMS01));
        LogWarp.LogError("测试:    不带buff的" + MinerBigInt.ToDisplay(incomeCoinMS02));
    }
    /// <summary>
    /// 测试:动物购买
    /// </summary>
    private void OnTestDeactiveAnimal()
    {
        LogWarp.LogError("测试::   删除动物");
        // LittleZooModule.DeactiveAnimal(1001, 10101);
        Dictionary <int, EntityMovable> entityMovables = EntityManager.GetInstance().entityMovables;

        EntityManager.GetInstance().RemoveFromEntityMovables(entityMovables[entityMovables.Count - 1]);
    }
Пример #8
0
 /// <summary>
 /// 观看视频翻倍
 /// </summary>
 /// <param name="obj"></param>
 private void OnClickReceiveButton(string obj)
 {
     LogWarp.LogError(" 观看视频翻倍  ");
     SendIncreaseCrossRoadStageID();
     //SetValueOfPlayerData.Send((int)GameMessageDefine.AddCoinOfPlayerDataMSSC, 0, cellStage.firstgoldreward*2, 0);
     //CrossRoadStageManager.GetInstance().UnLoad();
     //ZooGameLoader.GetInstance().BackFromCrossRoad();
 }
        /// <summary>
        /// 获取对应动物栏ID对应的的观光位下的UI显示对象
        /// </summary>
        /// <param name="littleZooID">动物栏ID</param>
        /// <param name="idx">观光位下标</param>
        /// <param name="ID">类型</param>
        /// <returns></returns>
        public GameObject GetLittleZooVisitSeatGameObject(int littleZooID, int idx, int ID)
        {
            GameObject visitSeatGB    = null;
            GameObject sceneFlutterGB = null;

            //判断是否有littleZooID的key值,没有则添加
            if (!zooSceneUIDic.ContainsKey(littleZooID))
            {
                Dictionary <int, SceneUIArray> dic = new Dictionary <int, SceneUIArray>();
                zooSceneUIDic.Add(littleZooID, dic);
            }
            Dictionary <int, SceneUIArray> dic2 = zooSceneUIDic[littleZooID];

            //判断是否有idx的key值,没有则添加
            if (!dic2.ContainsKey(idx))
            {
                //生成对应的字典和GameObject
                string  visitSeatPath        = Config.globalConfig.getInstace().VisitSeatCDGameObject;
                string  sceneFlutterTextPath = Config.globalConfig.getInstace().SceneFlutterTextGameObject;
                var     buildinPos           = LittleZooBuildinPosManager.GetInstance().GetLittleZooBuildinPos(littleZooID);
                Vector3 vector = buildinPos.visitPosList[idx];


                if (littleZooMountPoint == null)
                {
                    littleZooMountPoint = GameObject.Find(Config.globalConfig.getInstace().BuildVisitEffect);
                    //LogWarp.LogError("测试:只获取一次 littleZooMountPoint 对象");
                }
                visitSeatGB = SetLoadGameObject(vector, idx, visitSeatPath, littleZooMountPoint.transform);
                float scale = Config.globalConfig.getInstace().CdTimeZoom;
                visitSeatGB.transform.localScale = new Vector3(scale, scale, scale);

                sceneFlutterGB = SetLoadGameObject(vector, idx, sceneFlutterTextPath, littleZooMountPoint.transform);
                SceneUIArray littleUIArray = new SceneUIArray()
                {
                    VisitSeatGB    = visitSeatGB,
                    SceneFlutterGB = sceneFlutterGB
                };
                zooSceneUIDic[littleZooID][idx] = littleUIArray;
            }

            switch (ID)
            {
            case 0:
                return(zooSceneUIDic[littleZooID][idx].VisitSeatGB);

            case 1:
                return(zooSceneUIDic[littleZooID][idx].SceneFlutterGB);

            default:
                LogWarp.LogError("场景观光位UI:获取类型不对 = " + ID);
                return(null);
            }
        }
Пример #10
0
        /// <summary>
        /// 轮船开过来,下指定数量的游客
        /// </summary>
        /// <param name="maxSpawnVisitorNum"></param>
        public static void GetoffVisitor(int maxSpawnVisitorNum)
        {
            LogWarp.LogError("GetoffVisitor");
            EntityShip entity;

            int sceneID       = GlobalDataManager.GetInstance().playerData.playerZoo.currSceneID;
            int visitorpathID = Config.sceneConfig.getInstace().getCell(sceneID).visitorpath;

            Config.sceneaddvisitorCell sceneaddvisitorCell = Config.sceneaddvisitorConfig.getInstace().getCell(visitorpathID);

            switch (visitorpathID)
            {
            case 0:
                entity = EntityManager.GetInstance().GetRandomEntity(ResType.Ship, EntityFuncType.Ship) as EntityShip;
                break;

            case 1:
                entity = EntityManager.GetInstance().GetRandomEntity(ResType.Train, EntityFuncType.Train) as EntityShip;
                break;

            default:
                entity = EntityManager.GetInstance().GetRandomEntity(ResType.Ship, EntityFuncType.Ship) as EntityShip;
                break;
            }

            EntityManager.GetInstance().AddToEntityMovables(entity);
            if (entity.followPath == null)
            {
                entity.followPath = new FollowPath();
            }
            entity.moveSpeed = sceneaddvisitorCell.movespeed;
            var path = PathManager.GetInstance().GetPath(sceneaddvisitorCell.intopath);

            entity.position = path[0];
            entity.followPath.Init(entity, path, path[0], 0, entity.moveSpeed, false);
            entity.maxSpawnVisitorNum    = maxSpawnVisitorNum;
            entity.visitorGetOffInterval = Math_F.FloatToInt1000(Config.globalConfig.getInstace().ShipVisitorGetOffInterval);
            if (entity.fsmMachine == null)
            {
                entity.fsmMachine = new FSMMachineShip(entity);

                entity.fsmMachine.AddState(new StateShipGoto((int)ShipState.Goto,
                                                             entity.fsmMachine));
                entity.fsmMachine.AddState(new StateShipGoback((int)ShipState.Goback,
                                                               entity.fsmMachine));

                entity.fsmMachine.SetDefaultState((int)ShipState.Goto);
            }
            else
            {
                entity.fsmMachine.GotoState((int)ShipState.Goto);
            }
            entity.Active();
        }
Пример #11
0
    /// <summary>
    ///  04 动物升级—单点
    /// </summary>
    void BuyPlayerAnimal04(string str)
    {
        int animalID = animalCellID[3];

        if (!JudgePressAnimal(animalID))
        {
            LogWarp.LogError("不能升级");
            return;
        }

        SendSetAnimalLevelMessageManager(animalID);  //发送升级消息
    }
        /// <summary>
        /// 获取对应下标的售票口的UI显示对象
        /// </summary>
        /// <param name="vector">售票口下标位置</param>
        /// <param name="idx">售票口下标</param>
        /// <param name="ID">类型</param>
        /// <returns></returns>
        public GameObject GetEntryUISceneGameObject(int idx, int ID)
        {
            GameObject visitSeatGB    = null;
            GameObject sceneFlutterGB = null;

            //判断是否有idx的key值,没有则添加
            if (!entrySceneUIDic.ContainsKey(idx))
            {
                //生成对应的字典和GameObject
                string visitSeatPath        = Config.globalConfig.getInstace().VisitSeatCDGameObject;
                string sceneFlutterTextPath = Config.globalConfig.getInstace().SceneFlutterTextGameObject;
                if (ticketMountPoint == null)
                {
                    ticketMountPoint = GameObject.Find(Config.globalConfig.getInstace().TicketsQueueEffect);
                }

                //售票口列表
                Vector3 vector = GlobalDataManager.GetInstance().zooGameSceneData.entryGateSenceData.entryGatesVector[idx % 8];
                //LogWarp.LogError("测试:vector对象  "+ vector);
                visitSeatGB = SetLoadGameObject(vector, idx, visitSeatPath, ticketMountPoint.transform);

                float scale = Config.globalConfig.getInstace().CdTimeZoom;
                visitSeatGB.transform.localScale = new Vector3(scale, scale, scale);

                sceneFlutterGB = SetLoadGameObject(vector, idx, sceneFlutterTextPath, ticketMountPoint.transform);
                Vector3 vector1 = sceneFlutterGB.transform.position;
                sceneFlutterGB.transform.position = new Vector3(vector1.x + 10, vector1.y + 15, vector1.z + 10);
                SceneUIArray littleUIArray = new SceneUIArray()
                {
                    VisitSeatGB    = visitSeatGB,
                    SceneFlutterGB = sceneFlutterGB
                };

                entrySceneUIDic[idx] = littleUIArray;
            }

            switch (ID)
            {
            case 0:
                //LogWarp.LogError("测试:       idx      " + entrySceneUIDic[idx].VisitSeatGB);
                return(entrySceneUIDic[idx].VisitSeatGB);

            case 1:
                return(entrySceneUIDic[idx].SceneFlutterGB);

            default:
                LogWarp.LogError("场景UI显示:获取类型不对 = " + ID);
                return(null);
            }
        }
    /// <summary>
    /// 点击流量按钮事件
    /// </summary>
    public void OnClickUpGrade_EnterCarSpawn(string str)
    {
        if (!JudgePressButton_EnterCarSpawn() && isLongPress)
        {
            LogWarp.LogError("不能升级");
            return;
        }
        SendSetParkingCoolingLevelMessageManager();
        isGetCoin = false;  //设置等待回复状态
        ///播放音乐
        string btnSoundPath = Config.globalConfig.getInstace().BuildUpButtonMusic;

        SoundManager.GetInstance().PlaySound(btnSoundPath);
    }
        /// <summary>
        /// 小游戏失败
        /// </summary>
        /// <param name="obj"></param>
        private void OnGetCrossRoadGameFailure(Message obj)
        {
            gameModules.Stop();

            //float timeCount = 0.1f;
            //DOTween.To(() => timeCount, a => timeCount = a, 0.1f, timeLapseFailPage).OnComplete(new TweenCallback(delegate
            //{
            //    PageMgr.ShowPage<UIGameFailPage>();

            //}));

            PageMgr.ShowPage <UIGameFailPage>();
            //弹出UI  失败
            LogWarp.LogError("游戏失败");
        }
    /// <summary>
    /// 升级停车场利润等级
    /// </summary>
    /// <param name="obj"></param>
    private void OnClickTestParkingUpLvButton(string obj)
    {
        LogWarp.LogError(" 升级停车场利润等级 ");
        //获取当前等级
        var level       = playerData.GetParkingCenterDataIDIndexOfDataIdx().parkingProfitLevel;
        var parkingCell = GlobalDataManager.GetInstance().logicTableParkingData.GetParkingCell(playerData.playerZoo.currSceneID);
        //获取当前需要升级的级别
        int needUpLV = GetNeedUpLv(parkingCell.lvshage, level);

        //发送消息
        //发送消息       SetValueOfPlayerData  消息体
        SetDetailValueOfPlayerData.Send((int)GameMessageDefine.SetParkingProfitLevelOfPlayerData,
                                        needUpLV, 0, 0);
        //提升升级成功
        PromptText.CreatePromptText_TestUI("开始升级停车场门票等级= " + level + "  增加= " + needUpLV);
        isButton = false;
    }
    /// <summary>
    /// 升级售票口门票等级
    /// </summary>
    /// <param name="obj"></param>
    private void OnClickTestTicketUpLvButton(string obj)
    {
        LogWarp.LogError(" 升级售票口门票等级 ");
        //获取当前等级
        var level       = playerData.GetEntryDateDataIDIndexOfDataIdx().entryTicketsLevel;
        var sortGateIDs = GlobalDataManager.GetInstance().logicTableEntryGate.GetSortGateIDs(playerData.playerZoo.currSceneID);
        var ticketCell  = Config.ticketConfig.getInstace().getCell(sortGateIDs[0]);
        //获取当前需要升级的级别
        int needUpLV = GetNeedUpLv(ticketCell.lvshage, level);

        //发送消息
        //发送消息       SetValueOfPlayerData  消息体
        SetDetailValueOfPlayerData.Send((int)GameMessageDefine.SetEntryGateLevelOfPlayerData,
                                        needUpLV, 0, 0);
        //提升升级成功
        PromptText.CreatePromptText_TestUI("开始升级售票口门票等级+" + needUpLV);
        isButton = false;
    }
Пример #17
0
        /// <summary>
        /// 获取节点下的观光点技能CD对象,
        /// </summary>
        /// <param name="vector">技能对象出现的位置</param>
        /// <returns></returns>
        public static GameObject GetVisitCDGameObject(int idx)
        {
            GameObject visitCDPrefabs = GlobalDataManager.GetInstance().littleSceneUI.GetEntryUISceneGameObject(idx, 0);

            if (visitCDPrefabs == null)
            {
                LogWarp.LogError("测试:visitCDPrefabs为空     idx" + idx);
            }
            visitCDPrefabs.transform.position = GlobalDataManager.GetInstance().zooGameSceneData.entryGateSenceData.entryGatesVector[idx % 8];
            GameObject skill = visitCDPrefabs.transform.Find("Text_UI").gameObject;
            float      scale = Config.globalConfig.getInstace().VisitSeatCDScale;

            skill.transform.localScale = new Vector3(scale, scale, scale);
            Image image_Skill = skill.transform.Find("Image_Skill").GetComponent <Image>();

            image_Skill.fillAmount = 0f;
            return(visitCDPrefabs);
        }
        //public static bool GenCrossLittleZooIDs(int sourLittleZooID, int destLittleZooID, List<int> crossGroupIDs, List<int> crossLittleZooIDs)
        //{
        //    crossLittleZooIDs.Clear();
        //    crossLittleZooIDs.Add(sourLittleZooID);
        //    LogWarp.LogFormat("cross group {0}, littlezoo {1}", -1, sourLittleZooID);
        //    for (int i = 0; i < crossGroupIDs.Count; i++)
        //    {
        //        int openedLittleZooID = -1;
        //        GlobalDataManager.GetInstance().logicTableGroup.GetOpenedLittleZooID(
        //            crossGroupIDs[i], ref openedLittleZooID);

        //        if (!crossLittleZooIDs.Contains(openedLittleZooID))
        //        {
        //            crossLittleZooIDs.Add(openedLittleZooID);
        //            LogWarp.LogFormat("cross group {0}, littlezoo {1}", crossGroupIDs[i], openedLittleZooID);
        //        }
        //    }

        //    if (crossLittleZooIDs[crossLittleZooIDs.Count - 1] != destLittleZooID)
        //    {
        //        crossLittleZooIDs.Add(destLittleZooID);
        //        LogWarp.LogFormat("cross group {0}, littlezoo {1}", -1, destLittleZooID);
        //    }

        //    return true;
        //}

        /// <summary>
        /// 获取节点下的观光点技能CD对象,
        /// </summary>
        /// <param name="littleZooID">动物栏ID</param>
        /// <param name="vector">技能对象出现的位置</param>
        /// <returns></returns>
        public static GameObject GetVisitCDGameObject(int littleZooID, Vector3 vector, int idx)
        {
            GameObject visitCDPrefabs = GlobalDataManager.GetInstance().littleSceneUI.GetLittleZooVisitSeatGameObject(littleZooID, idx, 0);

            if (visitCDPrefabs == null)
            {
                LogWarp.LogError("测试:visitCDPrefabs为空  littleZooID= " + littleZooID + "   idx" + idx);
            }
            Vector3 excursionPosTion = new Vector3(Config.globalConfig.getInstace().CdTimeOffset_x, Config.globalConfig.getInstace().CdTimeOffset_y, Config.globalConfig.getInstace().CdTimeOffset_z);

            visitCDPrefabs.transform.position = vector + excursionPosTion;
            GameObject skill = visitCDPrefabs.transform.Find("Text_UI").gameObject;
            float      scale = Config.globalConfig.getInstace().VisitSeatCDScale;

            skill.transform.localScale = new Vector3(scale, scale, scale);
            Image image_Skill = skill.transform.Find("Image_Skill").GetComponent <Image>();

            image_Skill.fillAmount = 1f;

            return(visitCDPrefabs);
        }
 protected void TracedCamera(EntityGameObject entity, bool isBool)
 {
     if (IsTraceBool(isBool))
     {
         return;
     }
     if (isTracedVisitor == false)
     {
         isTracedVisitor = true;
     }
     else if (isTracedCar == false)
     {
         isTracedCar = true;
         ////模型到达出口   调用新手引导的内容  显示步骤13
         //if (GlobalDataManager.GetInstance().playerData.playerZoo.isGuide == true)
         //{
         //    UIGuide[] pAllObjects = (UIGuide[])Resources.FindObjectsOfTypeAll(typeof(UIGuide));
         //    //延时刷新关于出口的暂停和文本
         //    pAllObjects[0].VerdictExit(4f);
         //}
     }
     LogWarp.LogError("测试:     相机跟随");
 }
    private void OnTestOfflineBuff()
    {
        List <int> removeList = new List <int> {
            0,
            1,
            3,
            5,
        };
        List <string> myList = new List <string>
        {
            "A",
            "B",
            "C",
            "D",
            "E",
            "F",
            "G",
            "H",
        };

        List <string> myList01 = new List <string>();

        for (int i = 0; i < removeList.Count; i++)
        {
            int removeIdx = removeList[i];
            var str       = myList[removeIdx];
            myList01.Add(str);
        }
        foreach (var item in myList01)
        {
            myList.Remove(item);
        }
        foreach (var item in myList)
        {
            LogWarp.LogError("测试:       " + item);
        }
    }
 private void TestOnAddBuffSucceed(Message obj)
 {
     LogWarp.LogError("测试,buff便换了");
 }
 /// <summary>
 /// 播放视频
 /// </summary>
 /// <param name="obj"></param>
 private void OnClickAdvertPalyButton(string obj)
 {
     LogWarp.LogError("播放视频   UINewCurrencyAdvertPage ");
     //ThirdPartMgr.ShowRewardedAd(OnGetIsLockAdsSucceedBool);
 }
        /// <summary>
        /// 初始化玩家的playerAnimalDic
        /// </summary>
        public void InitPlayerAnimalDic(int sceneID)
        {
            LogWarp.LogError("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
            List <int> LittleZooIDs = new List <int>();
            var        groupData    = Config.groupConfig.getInstace().AllData;

            foreach (var item in groupData)
            {
                if (item.Value.scene == sceneID)
                {
                    for (int i = 0; i < item.Value.startid.Length; i++)
                    {
                        LittleZooIDs.Add(item.Value.startid[i]);
                    }
                }
            }

            foreach (var item in LittleZooIDs)
            {
                var cellBuildupData = Config.buildupConfig.getInstace().getCell(item);

                for (int i = 0; i < cellBuildupData.animalid.Length; i++)
                {
                    string       id           = cellBuildupData.animalid[i].ToString();
                    LittleAnimal littleAnimal = new LittleAnimal
                    {
                        animalLevel    = 0,
                        animalState    = AnimalState.NoneOwn,
                        animalEntityID = 0,
                    };

                    animalID.Add(id);
                    littleAnimalList.Add(littleAnimal);
                }
            }



            //var cellAnimalupAllData = Config.animalupConfig.getInstace().AllData;
            //foreach (var item in cellAnimalupAllData)
            //{
            //    //if (item.Value.s)
            //    //{

            //    //}
            //    string id = item.Key;
            //    LittleAnimal littleAnimal = new LittleAnimal
            //    {
            //        animalLevel = 0,
            //        animalState = AnimalState.NoneOwn,
            //        animalEntityID = 0,
            //    };
            //    //if (id == "10101")
            //    //{
            //    //    littleAnimal.animalLevel = 1;
            //    //    playerAllAnimalsLevel = 1;
            //    //    littleAnimal.animalState = AnimalState.AlreadyOpen;
            //    //}
            //    animalID.Add(id);
            //    littleAnimalList.Add(littleAnimal);
            //}
        }