| | |
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | if (m_Exit != null)
|
| | | {
|
| | | m_Exit.AddListener(ExitDungeon);
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | |
| | | {
|
| | | base.LateUpdate();
|
| | |
|
| | | if (!m_ExitTimer.gameObject.activeInHierarchy)
|
| | | if (m_ExitTimer != null && !m_ExitTimer.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_ExitTimer.gameObject.SetActive(true);
|
| | | }
|
| | |
| | |
|
| | | protected virtual void DrawExitTimer(int seconds)
|
| | | {
|
| | | if (m_ExitTimer != null)
|
| | | {
|
| | | m_ExitTimer.text = Language.Get("DungeonVictoryWin_Btn_Exit_1", Mathf.Clamp(seconds, 0, int.MaxValue));
|
| | | }
|
| | | }
|
| | |
|
| | | protected virtual void DrawItemRewards()
|
| | |
| | |
|
| | | protected virtual void RequireDungeonExit()
|
| | | {
|
| | | if (m_Exit != null)
|
| | | {
|
| | | m_Exit.gameObject.SetActive(true);
|
| | | }
|
| | | var endTime = dungeonModel.GetDungeonCoolDownEndTime(DungeonCoolDownType.LeaveMap);
|
| | | var seconds = (endTime - DateTime.Now).TotalSeconds;
|
| | | timer = (float)seconds - (int)seconds;
|