| | |
| | | if (_id == 82)
|
| | | {
|
| | | m_ContainerLock.gameObject.SetActive(!FuncOpen.Instance.IsFuncOpen(82));
|
| | | if (FuncOpen.Instance.IsFuncOpen(82))
|
| | | if (FuncOpen.Instance.IsFuncOpen(82) && model.serverInited)
|
| | | {
|
| | | potentialBriefInfos[0].potentialTween.SetStartState();
|
| | | potentialBriefInfos[0].potentialTween.enabled = false;
|
| | | m_TreasureAnimation.UnlockTreasurePotential(0);
|
| | | model.SetPotentialUnlockShow(model.selectedTreasure);
|
| | | }
|
| | | if (!m_SelectTotalEffect)
|
| | | {
|
| | | DisplayPotentialEffect();
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | private void PotentialLevelUpdate(int _potentialId, int arg2)
|
| | | {
|
| | | if (_potentialId == model.selectedPotential)
|
| | | if (_potentialId == model.selectedPotential && !m_SelectTotalEffect)
|
| | | {
|
| | | DisplayPotentialEffect();
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | var levelUpConfig = GetPotentialLevelUpConfig();
|
| | | if (!ContainsPotentialBook(model.selectedPotentialBook))
|
| | | if(_potentialId == model.selectedPotential && !m_SelectTotalEffect)
|
| | | {
|
| | | AutoSelectPotentialBook();
|
| | | //model.selectedPotentialBook = 0;
|
| | | var levelUpConfig = GetPotentialLevelUpConfig();
|
| | | if (!ContainsPotentialBook(model.selectedPotentialBook))
|
| | | {
|
| | | AutoSelectPotentialBook();
|
| | | }
|
| | |
|
| | | var curconfig = Config.Instance.Get<SkillConfig>(potential.id);
|
| | |
|
| | | var level = potential.level;
|
| | | var isMax = level >= curconfig.SkillMaxLV;
|
| | | m_ContainerUpgrade.gameObject.SetActive(!isMax && FuncOpen.Instance.IsFuncOpen(82));
|
| | | }
|
| | |
|
| | | var curconfig = Config.Instance.Get<SkillConfig>(potential.id);
|
| | |
|
| | | var level = potential.level;
|
| | | var isMax = level >= curconfig.SkillMaxLV;
|
| | | m_ContainerUpgrade.gameObject.SetActive(!isMax && FuncOpen.Instance.IsFuncOpen(82));
|
| | |
|
| | | }
|
| | |
|
| | | private void OnPotentialLevelUp(int _treasureId, int _potential, bool _ok)
|