|
@@ -29,6 +29,8 @@ namespace GFGGame
|
|
isfullScreen = true;
|
|
isfullScreen = true;
|
|
|
|
|
|
_scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightSingleScore"));
|
|
_scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightSingleScore"));
|
|
|
|
+ _ui.m_btnBack.onClick.Add(OnBtnBackClick);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
@@ -219,7 +221,7 @@ namespace GFGGame
|
|
private void SetScoreUI()
|
|
private void SetScoreUI()
|
|
{
|
|
{
|
|
EquipDataCache.cacher.totalScore = (int)Math.Round(_score);
|
|
EquipDataCache.cacher.totalScore = (int)Math.Round(_score);
|
|
- _ui.m_proScore.m_txtCount.text = Math.Round(_score).ToString();
|
|
|
|
|
|
+ _ui.m_proScore.m_txtCount.text = "总分:" + Math.Round(_score).ToString();
|
|
_ui.m_proScore.target.TweenValue(_score, 0.2f);
|
|
_ui.m_proScore.target.TweenValue(_score, 0.2f);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -229,10 +231,24 @@ namespace GFGGame
|
|
EventAgent.RemoveEventListener(ConstMessage.CARD_SKILL, CircleScoreStart);
|
|
EventAgent.RemoveEventListener(ConstMessage.CARD_SKILL, CircleScoreStart);
|
|
Timers.inst.Remove(SkillScoreStart);
|
|
Timers.inst.Remove(SkillScoreStart);
|
|
Timers.inst.Remove(Skip);
|
|
Timers.inst.Remove(Skip);
|
|
|
|
+ _ui.m_proScore.target.value = 0;
|
|
|
|
+ _ui.m_proScore.m_txtCount.text = "总分:0";
|
|
this.Hide();
|
|
this.Hide();
|
|
ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW);
|
|
ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW);
|
|
}
|
|
}
|
|
|
|
+ private void OnBtnBackClick()
|
|
|
|
+ {
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.CARD_SKILL, CircleScoreStart);
|
|
|
|
+ Timers.inst.Remove(SkillScoreStart);
|
|
|
|
+ Timers.inst.Remove(Skip);
|
|
|
|
+ _ui.m_comAllCircle.target.visible = false;
|
|
|
|
+ _ui.m_proScore.target.value = 0;
|
|
|
|
+ _ui.m_proScore.m_txtCount.text = "总分:0";
|
|
|
|
|
|
|
|
+ this.Hide();
|
|
|
|
+ ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, StoryDataManager.currentChapter, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW));
|
|
|
|
+
|
|
|
|
+ }
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
{
|
|
{
|
|
base.OnHide();
|
|
base.OnHide();
|