| | |
| | | float halfSecondTimer = 0;
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (!(StageManager.Instance.CurrentStage is DungeonStage))
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | secondTimer += Time.deltaTime;
|
| | | halfSecondTimer += Time.deltaTime;
|
| | | if(halfSecondTimer >= 0.5f)
|
| | |
| | |
|
| | | private void OnStartHandupAI()
|
| | | {
|
| | | DesignDebug.Log("OnStartHandupAI");
|
| | | DebugEx.Log("OnStartHandupAI");
|
| | | _isAutoHangUp = true;
|
| | | RefreshBagItem();
|
| | | }
|
| | |
|
| | | private void OnStopHandupAI()
|
| | | {
|
| | | DesignDebug.Log("OnStopHandupAI");
|
| | | DebugEx.Log("OnStopHandupAI");
|
| | | _isAutoHangUp = false;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!_isAutoHangUp)
|
| | | {
|
| | | DesignDebug.Log("请开启自动挂机,否则无法出售");
|
| | | DebugEx.Log("请开启自动挂机,否则无法出售");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | if (list != null && list.Count > 0)
|
| | | {
|
| | | playerPack.SendEquipdevourQuest();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell))
|
| | | if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell) && modelInterface.GetSellItemList().Count > 0)
|
| | | {
|
| | | modelInterface.SendOneKeySellQuest(modelInterface.GetSellItemList());
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | if (singlePack == null)
|
| | | return;
|
| | |
|
| | | _tagFuncModel = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("AutoBuyDrug");
|
| | | _tagFuncModel = Config.Instance.Get<FuncConfigConfig>("AutoBuyDrug");
|
| | | shopIdlist = ConfigParse.GetMultipleStr<int>(_tagFuncModel.Numerical1);
|
| | | int i = 0;
|
| | | int length = shopIdlist.Length;
|
| | | for (i = length - 1; i > -1; i--)
|
| | | {
|
| | | _tagShopModel = ConfigManager.Instance.GetTemplate<StoreConfig>(shopIdlist[i]);
|
| | | _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(_tagShopModel.ItemID);
|
| | | _tagShopModel = Config.Instance.Get<StoreConfig>(shopIdlist[i]);
|
| | | _tagItemModel = Config.Instance.Get<ItemConfig>(_tagShopModel.ItemID);
|
| | | if (PlayerDatas.Instance.baseData.LV >= _tagItemModel.LV)
|
| | | {
|
| | | List<ItemModel> list = null;
|
| | |
| | | || !DeadModel.IsCanReborn || IsDungeon())
|
| | | return;
|
| | |
|
| | | _tagFuncModel = ConfigManager.Instance.GetTemplate<FuncConfigConfig>("RebornArguments");
|
| | | _tagFuncModel = Config.Instance.Get<FuncConfigConfig>("RebornArguments");
|
| | | RebornConditions = ConfigParse.GetMultipleStr<int>(_tagFuncModel.Numerical1);
|
| | | rebornPrice = RebornConditions[2];
|
| | | StartCoroutine(PlayerReborn(5));
|
| | |
| | | private bool IsDungeon()
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = ConfigManager.Instance.GetTemplate<MapConfig>(mapId);
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(mapId);
|
| | | return mapConfig != null && mapConfig.MapFBType != 0;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | while(true)
|
| | | {
|
| | | DesignDebug.Log("PlayerReborn");
|
| | | DebugEx.Log("PlayerReborn");
|
| | | time -= 1;
|
| | | if (time <= 0 && DeadModel.playerIsDie)
|
| | | {
|
| | |
| | |
|
| | | private int CompareDrugLv(ItemModel start, ItemModel next)
|
| | | {
|
| | | _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>((int)start.itemInfo.ItemID);
|
| | | _tagItemModel = Config.Instance.Get<ItemConfig>((int)start.itemInfo.ItemID);
|
| | | int lv1 = _tagItemModel.LV;
|
| | | _tagItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>((int)next.itemInfo.ItemID);
|
| | | _tagItemModel = Config.Instance.Get<ItemConfig>((int)next.itemInfo.ItemID);
|
| | | int lv2 = _tagItemModel.LV;
|
| | | return -lv1.CompareTo(lv2);
|
| | | }
|