|
@@ -1,5 +1,6 @@
|
|
using ET;
|
|
using ET;
|
|
using FairyGUI;
|
|
using FairyGUI;
|
|
|
|
+using System.Collections.Generic;
|
|
using UI.Travel;
|
|
using UI.Travel;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
|
|
@@ -9,9 +10,18 @@ namespace GFGGame
|
|
{
|
|
{
|
|
private UI_TravelUI _ui;
|
|
private UI_TravelUI _ui;
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
|
|
+ private Dictionary<string, EffectUI> _effectUIDic = new Dictionary<string, EffectUI>();
|
|
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
|
|
+ // Clear Effect
|
|
|
|
+ foreach (var v in _effectUIDic)
|
|
|
|
+ {
|
|
|
|
+ EffectUIPool.Recycle(v.Value);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ _effectUIDic.Clear();
|
|
|
|
+
|
|
if (_valueBarController != null)
|
|
if (_valueBarController != null)
|
|
{
|
|
{
|
|
_valueBarController.Dispose();
|
|
_valueBarController.Dispose();
|
|
@@ -46,6 +56,12 @@ namespace GFGGame
|
|
_ui.m_btnFieldGuide.onClick.Add(OnBtnFieldGuideClick);
|
|
_ui.m_btnFieldGuide.onClick.Add(OnBtnFieldGuideClick);
|
|
|
|
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("cj_bg_ychm");
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("cj_bg_ychm");
|
|
|
|
+
|
|
|
|
+ _effectUIDic.Add("XQFS_Kuang_All", EffectUIPool.CreateEffectUI(_ui.m_bg_eff, "ui_HaiZhiShi", "XQFS_Kuang_All"));
|
|
|
|
+ // 省略号特效
|
|
|
|
+ _effectUIDic.Add("XQFS_Text_Loading", EffectUIPool.CreateEffectUI(_ui.m_txt_eff, "ui_HaiZhiShi", "XQFS_Text_Loading"));
|
|
|
|
+ _effectUIDic.Add("XQFS_Button_YouLi", EffectUIPool.CreateEffectUI(_ui.m_btnGo.m_btnGo_eff, "ui_HaiZhiShi", "XQFS_Button_YouLi"));
|
|
|
|
+ _effectUIDic.Add("XQFS_XinFeng_ComBack", EffectUIPool.CreateEffectUI(_ui.m_btnGet.m_btnGet_eff, "ui_HaiZhiShi", "XQFS_XinFeng_ComBack"));
|
|
}
|
|
}
|
|
|
|
|
|
protected override void AddEventListener()
|
|
protected override void AddEventListener()
|
|
@@ -111,7 +127,7 @@ namespace GFGGame
|
|
UpdateView();
|
|
UpdateView();
|
|
}
|
|
}
|
|
|
|
|
|
- _ui.m_txtTime.text = string.Format("大约{0}后归来..", TimeUtil.FormattingTime(curTime, endTime));
|
|
|
|
|
|
+ _ui.m_txtTime.text = string.Format("大约{0}后归来", TimeUtil.FormattingTime(curTime, endTime));
|
|
}
|
|
}
|
|
|
|
|
|
private void OnBtnBackClick()
|
|
private void OnBtnBackClick()
|