|
@@ -16,7 +16,6 @@ namespace GFGGame
|
|
private EffectUI _effectUI3;
|
|
private EffectUI _effectUI3;
|
|
private EffectUI _effectUI4;
|
|
private EffectUI _effectUI4;
|
|
private EffectUI _effectUI5;
|
|
private EffectUI _effectUI5;
|
|
- private Transition m_ReduceTxt;
|
|
|
|
|
|
|
|
private bool isFirst;
|
|
private bool isFirst;
|
|
private GameObject mainCamera;
|
|
private GameObject mainCamera;
|
|
@@ -64,13 +63,8 @@ namespace GFGGame
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
- skillScoreDic = (this.viewData as object[])[0] as Dictionary<int, int>;
|
|
|
|
- if ((this.viewData as object[])[1] != null)
|
|
|
|
- {
|
|
|
|
- m_ReduceTxt = (this.viewData as object[])[1] as Transition;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ skillScoreDic = this.viewData as Dictionary<int, int>;
|
|
|
|
+
|
|
UpdateView();
|
|
UpdateView();
|
|
}
|
|
}
|
|
private void UpdateView()
|
|
private void UpdateView()
|
|
@@ -91,6 +85,7 @@ namespace GFGGame
|
|
_ui.m_comSkillShow.m_ComSkillScore.m_c1.selectedIndex = skillScoreDic[skillId] >= 0 ? 0 : 1;
|
|
_ui.m_comSkillShow.m_ComSkillScore.m_c1.selectedIndex = skillScoreDic[skillId] >= 0 ? 0 : 1;
|
|
|
|
|
|
_ui.m_comSkillShow.m_SkillScore.SetVar("value", skillScoreDic[skillId].ToString()).FlushVars();
|
|
_ui.m_comSkillShow.m_SkillScore.SetVar("value", skillScoreDic[skillId].ToString()).FlushVars();
|
|
|
|
+ _ui.m_reduceTxt.SetVar("value", skillScoreDic[skillId].ToString()).FlushVars();
|
|
|
|
|
|
string res = skillCfg.res;
|
|
string res = skillCfg.res;
|
|
|
|
|
|
@@ -150,11 +145,7 @@ namespace GFGGame
|
|
private void SetEffReduceScore(object param)
|
|
private void SetEffReduceScore(object param)
|
|
{
|
|
{
|
|
_ui.m_effReduceScore.visible = true;
|
|
_ui.m_effReduceScore.visible = true;
|
|
- if (m_ReduceTxt != null)
|
|
|
|
- {
|
|
|
|
- m_ReduceTxt.Play();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ _ui.m_t3.Play();
|
|
}
|
|
}
|
|
|
|
|
|
private void SetEffVisible(object param)
|
|
private void SetEffVisible(object param)
|