Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | GUILayout.EndHorizontal();
|
| | |
|
| | | EditorGUILayout.Space();
|
| | | #endif
|
| | | GUILayout.BeginHorizontal();
|
| | | EditorGUILayout.TextField("SDK Project Path", ClientPackage.SDK_PLUGIN_PROJECT);
|
| | | if (GUILayout.Button("Browse", GUILayout.MaxWidth(75f)))
|
| | |
| | | GUILayout.EndHorizontal();
|
| | |
|
| | | EditorGUILayout.Space();
|
| | | #endif
|
| | |
|
| | | publishers = EditorGUILayout.TextField("Publishers", publishers, GUILayout.Height(50));
|
| | |
|
| | |
| | | {
|
| | | CheckGroupEnterDungeon(_dungeon);
|
| | | }
|
| | | else
|
| | | {
|
| | | GroupCancelEnterDungeon(_dungeon.mapId);
|
| | | }
|
| | | });
|
| | | }
|
| | | else if (teamModel.myTeam.memberCount - teamModel.myTeam.GetOnlineMemberCnt() > 0)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void GroupCancelEnterDungeon(int _mapId)
|
| | | {
|
| | | switch (_mapId)
|
| | | {
|
| | | case RealmModel.REALM_DUNGEON_ID:
|
| | | if (!WindowCenter.Instance.CheckOpen<TeamFrameWin>())
|
| | | {
|
| | | var teamModel = ModelCenter.Instance.GetModel<TeamModel>();
|
| | | teamModel.missionBuf = teamModel.currentMission = new TeamMission(31110, 1);
|
| | | WindowCenter.Instance.Open<TeamFrameWin>(false, teamModel.myTeam.inTeam ? 1 : 0);
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private string GroupChallengeOnlyOneTip(int _mapId)
|
| | | {
|
| | | switch (_mapId)
|
| | |
| | | public int GetRecommendFloor()
|
| | | {
|
| | | var vipLevel = PlayerDatas.Instance.baseData.VIPLv;
|
| | | var maxFloor = 1;
|
| | | var vipNeedFloor1 = GetFloorVipRequirement(1);
|
| | | var myLevel = PlayerDatas.Instance.baseData.LV;
|
| | |
|
| | | for (int i = 0; i < sortedBosses.Count; i++)
|
| | | {
|
| | | var bossId = sortedBosses[i];
|
| | | var config = Config.Instance.Get<NPCConfig>(bossId);
|
| | | var bossHomeConfig = Config.Instance.Get<BossHomeConfig>(bossId);
|
| | |
|
| | | if (bossHomeConfig.FloorNum > maxFloor)
|
| | | if (vipLevel < vipNeedFloor1)
|
| | | {
|
| | | maxFloor = bossHomeConfig.FloorNum;
|
| | | if (config.NPCLV > myLevel)
|
| | | {
|
| | | var bossHomeConfig = Config.Instance.Get<BossHomeConfig>(bossId);
|
| | | return bossHomeConfig.FloorNum;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | var bossHomeConfig = Config.Instance.Get<BossHomeConfig>(bossId);
|
| | | if (vipLevel >= GetFloorVipRequirement(bossHomeConfig.FloorNum) && myLevel < config.NPCLV)
|
| | | {
|
| | | return bossHomeConfig.FloorNum;
|
| | | }
|
| | | }
|
| | |
|
| | | if (vipLevel >= GetFloorVipRequirement(bossHomeConfig.FloorNum) && PlayerDatas.Instance.baseData.LV < config.NPCLV)
|
| | | {
|
| | | return bossHomeConfig.FloorNum;
|
| | | }
|
| | | }
|
| | |
|
| | | return maxFloor;
|
| | | return 1;
|
| | | }
|
| | |
|
| | | public int GetFloorVipRequirement(int _floor)
|
| | |
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.Trial;
|
| | | }
|
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == 29)//仙界秘境功能开启引导
|
| | | {
|
| | | ModelCenter.Instance.GetModel<DailyQuestModel>().currentDailyQuest = (int)DailyQuestType.FairyLand;
|
| | | }
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<DailyQuestWin>();
|
| | | }
|
| | |
| | | [SerializeField] ScrollerController scrollerController;
|
| | | [SerializeField] RectTransform m_ContainerGetWay;
|
| | | [SerializeField] ClickScreenOtherSpace clickOtherSpace;
|
| | | [SerializeField, Header("特效时长")] float m_EffectDuration = 1f;
|
| | | private List<SkillConfig> skillListPass = new List<SkillConfig>();
|
| | | private int presentSltEquipIndex = -1;
|
| | | Coroutine cacheCoroutine = null;
|
| | |
| | |
|
| | | IEnumerator Co_UnlockEffectComplete()
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS800;
|
| | | var duration = m_EffectDuration > 0f ? m_EffectDuration : 1.0f;
|
| | | yield return WaitingForSecondConst.GetWaitForSeconds(duration);
|
| | | SysNotifyMgr.Instance.ShowTip("PassNewHole");
|
| | | UpdateEquipPassSkill();
|
| | | }
|
| | |
| | | }
|
| | | else if (_limit.OpenSkillSlots > 0 && !model.IsTaskHoleUnlock(_limit.OpenSkillSlots))
|
| | | {
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return false;
|
| | |
| | | }
|
| | | }
|
| | | SysNotifyMgr.Instance.ShowTip("PassEquipLimitTask", taskName);
|
| | | m_GetWayBtn.gameObject.SetActive(true);
|
| | | m_GetWayBtn.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | DogzModel dogz_model { get { return Dogz_model ?? (Dogz_model = ModelCenter.Instance.GetModel<DogzModel>()); } } |
| | | private Dictionary<int, int> QualityLimit = new Dictionary<int, int>();
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack { get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); } } |
| | | PlayerPackModel playerPack { get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); } }
|
| | | ItemTipsModel _itemTipsModel;
|
| | | ItemTipsModel itemTipsModel { get { return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>()); } }
|
| | | private int GodBeastNumber=0;//神兽编号 |
| | | private int GodBeastPart = 0;//神兽装备ID |
| | | |
| | |
| | | {
|
| | | if (itemModel[i].EquipPlace == GodBeastPart)
|
| | | {
|
| | | ItemCellModel ItemModel = new ItemCellModel(itemModel[i].itemId, true, 0, 1);
|
| | | ItemCellModel ItemModel = new ItemCellModel(itemModel[i].itemId, true, 0, itemModel[i].itemInfo.IsBind);
|
| | | m_ItemCell.Init(ItemModel);
|
| | | m_ItemCell.cellBtn.RemoveAllListeners();
|
| | | int type = i;
|
| | | m_ItemCell.cellBtn.AddListener(()=> |
| | | {
|
| | | itemTipsModel.SetItemTipsModel(PackType.rptDogzEquip, itemModel[type].itemInfo.ItemGUID);
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (itemModel[i].EquipPlace == godBeastPart)
|
| | | {
|
| | | ItemCellModel ItemModel = new ItemCellModel(itemModel[i].itemId, true, 0, 1);
|
| | | ItemCellModel ItemModel = new ItemCellModel(itemModel[i].itemId, true, 0, itemModel[i].itemInfo.IsBind);
|
| | | m_itemCell.Init(ItemModel);
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(itemModel[i].itemId);
|
| | | var IudetDogzEquipPlus = itemModel[i].GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);// 神兽装备强化信息列表 [强化等级, 强化熟练度]
|
| | |
| | | public void SetQualityLevel(GameQuality _quality, bool _disabeCamera = true)
|
| | | {
|
| | | LocalSave.SetInt(QUALITY_LEVEL_KEY, Mathf.Clamp((int)_quality, 0, 2));
|
| | |
|
| | | QualitySettings.SetQualityLevel(Mathf.Clamp((int)_quality, 0, 2));
|
| | | switch (_quality)
|
| | | {
|
| | | case GameQuality.Low:
|