|
@@ -15,7 +15,7 @@ namespace GFGGame
|
|
|
private EffectUI _effectUI2;
|
|
|
private EffectUI _effectUI3;
|
|
|
private EffectUI _effectUI4;
|
|
|
- private GGraph _m_effReduceScore;
|
|
|
+ private EffectUI _effectUI5;
|
|
|
private Transition m_ReduceTxt;
|
|
|
|
|
|
private bool isFirst;
|
|
@@ -32,6 +32,8 @@ namespace GFGGame
|
|
|
_effectUI3 = null;
|
|
|
EffectUIPool.Recycle(_effectUI4);
|
|
|
_effectUI4 = null;
|
|
|
+ EffectUIPool.Recycle(_effectUI5);
|
|
|
+ _effectUI5 = null;
|
|
|
if (_ui != null)
|
|
|
{
|
|
|
_ui.Dispose();
|
|
@@ -50,6 +52,7 @@ namespace GFGGame
|
|
|
//_effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_comSkillShow.m_holderTop, "ui_fight_new", "CFKP_TX_up");
|
|
|
_effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_comSkillShow.m_addScore, "ui_fight_new", "CFKP_UP");
|
|
|
_effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_comSkillShow.m_reduceScore, "ui_fight_new", "CFKP_Down");
|
|
|
+ _effectUI5 = EffectUIPool.CreateEffectUI(_ui.m_effReduceScore, "ui_fight_new", "CFKP_Down_end");
|
|
|
|
|
|
_ui.m_comSkillShow.m_t0.ignoreEngineTimeScale = false;
|
|
|
_ui.m_comSkillShow.m_t1.ignoreEngineTimeScale = false;
|
|
@@ -62,11 +65,7 @@ namespace GFGGame
|
|
|
{
|
|
|
base.OnShown();
|
|
|
skillScoreDic = (this.viewData as object[])[0] as Dictionary<int, int>;
|
|
|
- _m_effReduceScore = (this.viewData as object[])[1] as GGraph;
|
|
|
- if ((this.viewData as object[]).Length >= 3)
|
|
|
- {
|
|
|
- m_ReduceTxt = (this.viewData as object[])[2] as Transition;
|
|
|
- }
|
|
|
+ m_ReduceTxt = (this.viewData as object[])[1] as Transition;
|
|
|
|
|
|
UpdateView();
|
|
|
}
|
|
@@ -130,9 +129,9 @@ namespace GFGGame
|
|
|
base.OnHide();
|
|
|
_ui.m_comSkillShow.m_addScore.visible = false;
|
|
|
_ui.m_comSkillShow.m_reduceScore.visible = false;
|
|
|
- if (_m_effReduceScore != null)
|
|
|
+ if (_ui.m_effReduceScore != null)
|
|
|
{
|
|
|
- _m_effReduceScore.visible = false;
|
|
|
+ _ui.m_effReduceScore.visible = false;
|
|
|
}
|
|
|
SetCamera(false);
|
|
|
Timers.inst.Remove(SetEffReduceScore);
|
|
@@ -146,8 +145,12 @@ namespace GFGGame
|
|
|
|
|
|
private void SetEffReduceScore(object param)
|
|
|
{
|
|
|
- _m_effReduceScore.visible = true;
|
|
|
- m_ReduceTxt.Play();
|
|
|
+ _ui.m_effReduceScore.visible = true;
|
|
|
+ if (m_ReduceTxt != null)
|
|
|
+ {
|
|
|
+ m_ReduceTxt.Play();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void SetEffVisible(object param)
|
|
@@ -167,7 +170,9 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_comSkillShow.m_SkillScore.color = new Color(0.973f, 0.784f, 0.431f, 1.000f);
|
|
|
_ui.m_comSkillShow.m_reduceScore.visible = false;
|
|
|
- _ui.m_comSkillShow.m_addScore.visible = true;
|
|
|
+ _ui.m_comSkillShow.m_addScore.visible = true;
|
|
|
+ _ui.m_comSkillShow.m_SkillScore.visible = true;
|
|
|
+ _ui.m_comSkillShow.m_t2.Play();
|
|
|
SetCamera(true);
|
|
|
}
|
|
|
else if (skillScoreDic[skillId] < 0)
|
|
@@ -175,6 +180,7 @@ namespace GFGGame
|
|
|
_ui.m_comSkillShow.m_SkillScore.color = new Color(0.906f, 0.894f, 0.894f, 1.000f);
|
|
|
_ui.m_comSkillShow.m_addScore.visible = false;
|
|
|
_ui.m_comSkillShow.m_reduceScore.visible = true;
|
|
|
+ _ui.m_comSkillShow.m_SkillScore.visible = false;
|
|
|
Timers.inst.Add(1.5f, 1, SetEffReduceScore);
|
|
|
}
|
|
|
}
|