| | |
| | | [SerializeField] Image m_BossRealm;
|
| | | [SerializeField] Text m_BossName;
|
| | |
|
| | | [SerializeField] RectTransform m_ContainerGroup;
|
| | | [SerializeField] Button m_Group;
|
| | |
|
| | | [SerializeField] TrialRewardsBehaviour[] m_RewardBehaviours;
|
| | | [SerializeField] ScrollRect m_RewardScroller;
|
| | |
|
| | |
| | | m_SingleStart.AddListener(ChallengeDungeon);
|
| | | m_AutoGroupStart.AddListener(AutoGroupChallenge);
|
| | | m_CloseWin.AddListener(CloseClick);
|
| | | m_Group.AddListener(OpenGroup);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | |
| | | m_GroupStart.image.material = CheckChallenge() ? MaterialUtility.GetUIDefaultGraphicMaterial() : MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | m_SingleStart.image.material = CheckChallenge() ? MaterialUtility.GetUIDefaultGraphicMaterial() : MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | m_AutoGroupStart.image.material = CheckChallenge() ? MaterialUtility.GetUIDefaultGraphicMaterial() : MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | m_Group.image.material = CheckChallenge() ? MaterialUtility.GetUIDefaultGraphicMaterial() : MaterialUtility.GetDefaultSpriteGrayMaterial();
|
| | | m_ContainerGroup.gameObject.SetActive(false);
|
| | |
|
| | | DrawDungeonBaseInfo();
|
| | | DrawRewards();
|
| | | }
|
| | |
| | | protected override void OnPreClose()
|
| | | {
|
| | | model.dungeonRecordChangeEvent -= UpdateDungeonTimes;
|
| | | UI3DModelExhibition.Instance.StopShowNPC();
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | private void OpenGroup()
|
| | | {
|
| | | if (!CheckChallenge())
|
| | | {
|
| | | return;
|
| | | }
|
| | | var openGroup = m_ContainerGroup.gameObject.activeSelf;
|
| | | m_ContainerGroup.gameObject.SetActive(!openGroup);
|
| | | }
|
| | |
|
| | | private void DrawDungeonBaseInfo()
|
| | | {
|
| | |
| | | m_GroupStart.gameObject.SetActive(fbType == 2 || fbType == 3);
|
| | | m_SingleStart.gameObject.SetActive(fbType == 1 || fbType == 2);
|
| | | m_AutoGroupStart.gameObject.SetActive(fbType == 2 || fbType == 3);
|
| | | m_Group.gameObject.SetActive(fbType == 2 || fbType == 3);
|
| | |
|
| | | var playerLevel = PlayerDatas.Instance.baseData.LV;
|
| | | m_LevelLimit.gameObject.SetActive(playerLevel < dungeonConfig.LVLimitMin);
|
| | |
| | | void DisplayBossInfo(int _npcId)
|
| | | {
|
| | | m_BossName.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.BeginShowNPC(_npcId, Vector3.zero, m_BossPortrayal);
|
| | | UI3DModelExhibition.Instance.ShowNPC(_npcId, Vector3.zero, m_BossPortrayal);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(_npcId);
|
| | | if (npcConfig != null)
|
| | | {
|