|
@@ -18,6 +18,8 @@ namespace GFGGame
|
|
private GObject _endLevelItem;
|
|
private GObject _endLevelItem;
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI2;
|
|
private EffectUI _effectUI2;
|
|
|
|
+ private EffectUI _effectUI3;
|
|
|
|
+ private EffectUI _effectUI4;
|
|
private GComponent _comEff;
|
|
private GComponent _comEff;
|
|
private GComponent _effFirst;
|
|
private GComponent _effFirst;
|
|
|
|
|
|
@@ -36,6 +38,10 @@ namespace GFGGame
|
|
_effectUI1 = null;
|
|
_effectUI1 = null;
|
|
EffectUIPool.Recycle(_effectUI2);
|
|
EffectUIPool.Recycle(_effectUI2);
|
|
_effectUI2 = null;
|
|
_effectUI2 = null;
|
|
|
|
+ EffectUIPool.Recycle(_effectUI3);
|
|
|
|
+ _effectUI3 = null;
|
|
|
|
+ EffectUIPool.Recycle(_effectUI4);
|
|
|
|
+ _effectUI4 = null;
|
|
if (_comEff != null)
|
|
if (_comEff != null)
|
|
{
|
|
{
|
|
_comEff.RemoveFromParent();
|
|
_comEff.RemoveFromParent();
|
|
@@ -97,6 +103,8 @@ namespace GFGGame
|
|
|
|
|
|
_effFirst = new GComponent();
|
|
_effFirst = new GComponent();
|
|
_effFirst = UIPackage.CreateObject(UI_MainUI.PACKAGE_NAME, "ComEff").asCom;
|
|
_effFirst = UIPackage.CreateObject(UI_MainUI.PACKAGE_NAME, "ComEff").asCom;
|
|
|
|
+ _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_bgEffect, "ui_zj", "ZX_BG_TX");
|
|
|
|
+ _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_chapter.m_compChapterScroll.m_nextEffect, "ui_zj", "ZX_Next_Boat");
|
|
|
|
|
|
}
|
|
}
|
|
protected override void AddEventListener()
|
|
protected override void AddEventListener()
|
|
@@ -132,6 +140,7 @@ namespace GFGGame
|
|
indexY = 111.0f * Mathf.Max(0, (float)StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id).Count - 5);
|
|
indexY = 111.0f * Mathf.Max(0, (float)StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id).Count - 5);
|
|
gamey = GameObject.Find("Stage/GRoot/Window - StoryChapterUI/ContentPane/CompChapter/Container/Container");
|
|
gamey = GameObject.Find("Stage/GRoot/Window - StoryChapterUI/ContentPane/CompChapter/Container/Container");
|
|
_ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = false;
|
|
_ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = false;
|
|
|
|
+ _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = false;
|
|
|
|
|
|
Timers.inst.StartCoroutine(InitChapter());
|
|
Timers.inst.StartCoroutine(InitChapter());
|
|
|
|
|
|
@@ -237,6 +246,7 @@ namespace GFGGame
|
|
if (lastLevelCfg != null && MainStoryDataManager.CheckLevelUnlock(lastLevelCfg.id) && LastChapterCfg != null)
|
|
if (lastLevelCfg != null && MainStoryDataManager.CheckLevelUnlock(lastLevelCfg.id) && LastChapterCfg != null)
|
|
{
|
|
{
|
|
_ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
|
|
_ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
|
|
|
|
+ _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = true;
|
|
}
|
|
}
|
|
//_comEff.visible = false;
|
|
//_comEff.visible = false;
|
|
//_effFirst.visible = false;
|
|
//_effFirst.visible = false;
|