|
@@ -26,6 +26,7 @@ namespace GFGGame
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI2;
|
|
private EffectUI _effectUI2;
|
|
private EffectUI _effectUI3;
|
|
private EffectUI _effectUI3;
|
|
|
|
+ private EffectUI _effectUI4;
|
|
private GObject curComStar;//当前选中的星星
|
|
private GObject curComStar;//当前选中的星星
|
|
private Vector2 lastPos;//鼠标的上一个位置,每颗星星初始时默认为Vector2.right;
|
|
private Vector2 lastPos;//鼠标的上一个位置,每颗星星初始时默认为Vector2.right;
|
|
|
|
|
|
@@ -44,6 +45,8 @@ namespace GFGGame
|
|
_effectUI2 = null;
|
|
_effectUI2 = null;
|
|
EffectUIPool.Recycle(_effectUI3);
|
|
EffectUIPool.Recycle(_effectUI3);
|
|
_effectUI3 = null;
|
|
_effectUI3 = null;
|
|
|
|
+ EffectUIPool.Recycle(_effectUI4);
|
|
|
|
+ _effectUI4 = null;
|
|
if (_ui != null)
|
|
if (_ui != null)
|
|
{
|
|
{
|
|
_ui.Dispose();
|
|
_ui.Dispose();
|
|
@@ -103,6 +106,7 @@ namespace GFGGame
|
|
_effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holder_star, "ui_LuckyBox", "bg_liuxing");
|
|
_effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holder_star, "ui_LuckyBox", "bg_liuxing");
|
|
_effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_holder_bg, "ui_LuckyBox", "bg_thing");
|
|
_effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_holder_bg, "ui_LuckyBox", "bg_thing");
|
|
_effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_holder_cloud, "ui_LuckyBox", "bg_cloud");
|
|
_effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_holder_cloud, "ui_LuckyBox", "bg_cloud");
|
|
|
|
+ _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_holder_star_sky, "ui_LuckyBox", "Bg_Sky_lizi");
|
|
}
|
|
}
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
@@ -178,7 +182,7 @@ namespace GFGGame
|
|
else
|
|
else
|
|
{
|
|
{
|
|
gcom = UIPackage.CreateObject("LuckyBox", "ComHolder").asCom;
|
|
gcom = UIPackage.CreateObject("LuckyBox", "ComHolder").asCom;
|
|
- EffectUI _effectUI = EffectUIPool.CreateEffectUI(gcom.GetChild("holder").asGraph, "ui_LuckyBox", name);
|
|
|
|
|
|
+ EffectUI _effectUI = EffectUIPool.CreateEffectUI(gcom.GetChild("holder").asGraph, "ui_LuckyBox", name,120);
|
|
dicEffect.Add(_effectUI);
|
|
dicEffect.Add(_effectUI);
|
|
}
|
|
}
|
|
return gcom;
|
|
return gcom;
|
|
@@ -219,7 +223,7 @@ namespace GFGGame
|
|
comStar.target.GetChildAt(2).asCom.visible = true;
|
|
comStar.target.GetChildAt(2).asCom.visible = true;
|
|
// comStar.target.GetChildAt(1).asCom.visible = false;
|
|
// comStar.target.GetChildAt(1).asCom.visible = false;
|
|
string resPath = _isLuckyBox ? "LINE_Bule" : "LINE";
|
|
string resPath = _isLuckyBox ? "LINE_Bule" : "LINE";
|
|
- EffectUI _effectUI = EffectUIPool.CreateEffectUI(comStar.m_comLine.m_holder, "ui_LuckyBox", resPath);
|
|
|
|
|
|
+ EffectUI _effectUI = EffectUIPool.CreateEffectUI(comStar.m_comLine.m_holder, "ui_LuckyBox", resPath,120);
|
|
effObj.Add(_effectUI);
|
|
effObj.Add(_effectUI);
|
|
UI_ComStar.ProxyEnd();
|
|
UI_ComStar.ProxyEnd();
|
|
|
|
|