|
@@ -77,13 +77,12 @@ namespace GFGGame
|
|
InstanceZonesDataManager.usedRecommend = false;
|
|
InstanceZonesDataManager.usedRecommend = false;
|
|
InstanceZonesDataManager.isResultFighting = true;
|
|
InstanceZonesDataManager.isResultFighting = true;
|
|
|
|
|
|
- _ui.m_ComRoleResult.m_c1.selectedIndex = _resultData.Star;
|
|
|
|
|
|
|
|
NTexture nTexture = new NTexture(EquipDataCache.cacher.RoleTextuex);
|
|
NTexture nTexture = new NTexture(EquipDataCache.cacher.RoleTextuex);
|
|
-
|
|
|
|
- _ui.m_ComRoleResult.m_comRole.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height);
|
|
|
|
- _ui.m_ComRoleResult.m_comRole.m_imgRole.texture = nTexture;
|
|
|
|
- _ui.m_ComRoleResult.m_comRole.m_imgRole.alpha = 1;
|
|
|
|
|
|
+ _ui.m_comRoleResult.m_c1.selectedIndex = _resultData.Star;
|
|
|
|
+ _ui.m_comRoleResult.m_comRole.m_imgRole.SetSize(GRoot.inst.width, GRoot.inst.height);
|
|
|
|
+ _ui.m_comRoleResult.m_comRole.m_imgRole.texture = nTexture;
|
|
|
|
+ _ui.m_comRoleResult.m_comRole.m_imgRole.alpha = 1;
|
|
|
|
|
|
_ui.m_comResult.m_c1.selectedIndex = _resultData.Star;
|
|
_ui.m_comResult.m_c1.selectedIndex = _resultData.Star;
|
|
_ui.m_comResult.m_txtScore.text = "" + _resultData.Score;
|
|
_ui.m_comResult.m_txtScore.text = "" + _resultData.Score;
|
|
@@ -112,14 +111,37 @@ namespace GFGGame
|
|
_ui.m_comExpBar.target.visible = false;
|
|
_ui.m_comExpBar.target.visible = false;
|
|
Timers.inst.Add(3, 1, OnClickBtnClose);
|
|
Timers.inst.Add(3, 1, OnClickBtnClose);
|
|
}
|
|
}
|
|
- _ui.m_t1.Play(AddExp);
|
|
|
|
- // _ui.m_ComRoleResult.m_comRole.m_t1.Play(() =>
|
|
|
|
- // {
|
|
|
|
- // _ui.m_t1.Play(AddExp);
|
|
|
|
- // });
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ GetCurStar(out Transition transition);
|
|
|
|
+ _ui.m_t0.Play();//播放重置动画
|
|
|
|
+ _ui.m_comRoleResult.m_t0.Play();//播放重置动画
|
|
|
|
+ _ui.m_comRoleResult.m_comRole.m_t0.Play(() =>
|
|
|
|
+ {
|
|
|
|
+ transition.Play(() =>
|
|
|
|
+ {
|
|
|
|
+ _ui.m_t1.Play(AddExp);
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ private void GetCurStar(out Transition transition)
|
|
|
|
+ {
|
|
|
|
+ StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
|
|
+ StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
|
+ transition = _ui.m_comRoleResult.m_t0;
|
|
|
|
+ if (_resultData.Star == 1)
|
|
|
|
+ {
|
|
|
|
+ transition = _ui.m_comRoleResult.m_t1;
|
|
|
|
+ }
|
|
|
|
+ else if (_resultData.Star == 2)
|
|
|
|
+ {
|
|
|
|
+ transition = _ui.m_comRoleResult.m_t2;
|
|
|
|
+ }
|
|
|
|
+ else if (_resultData.Star == 3)
|
|
|
|
+ {
|
|
|
|
+ transition = _ui.m_comRoleResult.m_t3;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
protected override void OnHide()
|
|
protected override void OnHide()
|
|
{
|
|
{
|
|
base.OnHide();
|
|
base.OnHide();
|
|
@@ -195,6 +217,7 @@ namespace GFGGame
|
|
UpdateToCheckGuide(null);
|
|
UpdateToCheckGuide(null);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
}
|
|
}
|
|
|
|
+
|
|
private void CheckGuide(object param)
|
|
private void CheckGuide(object param)
|
|
{
|
|
{
|
|
if (GuideDataManager.IsGuideFinish(ConstGuideId.FIRST_FIGHT_FAILED) <= 0
|
|
if (GuideDataManager.IsGuideFinish(ConstGuideId.FIRST_FIGHT_FAILED) <= 0
|