|
@@ -73,16 +73,10 @@ namespace GFGGame
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
_resultData = (StoryFightResultData)this.viewData;
|
|
_resultData = (StoryFightResultData)this.viewData;
|
|
- // if (_sceneObject == null)
|
|
|
|
- // {
|
|
|
|
- // _sceneObject = GameObject.Instantiate(_scenePrefab);
|
|
|
|
- // }
|
|
|
|
|
|
+
|
|
InstanceZonesDataManager.usedRecommend = false;
|
|
InstanceZonesDataManager.usedRecommend = false;
|
|
InstanceZonesDataManager.isResultFighting = true;
|
|
InstanceZonesDataManager.isResultFighting = true;
|
|
- // SceneController.UpdateRole(EquipDataCache.cacher.equipDatas, _sceneObject);
|
|
|
|
|
|
|
|
- ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(EquipDataCache.cacher.bgId);
|
|
|
|
- // _ui.m_ComRoleResult.m_comRole.m_loaBg.url = ResPathUtil.GetDressUpPath(itemCfg.res, ItemUtil.GetItemResExt(itemCfg.itemType, itemCfg.subType));
|
|
|
|
_ui.m_ComRoleResult.m_c1.selectedIndex = _resultData.Star;
|
|
_ui.m_ComRoleResult.m_c1.selectedIndex = _resultData.Star;
|
|
GLoader loaRole = _ui.m_ComRoleResult.m_comRole.m_loaRole;
|
|
GLoader loaRole = _ui.m_ComRoleResult.m_comRole.m_loaRole;
|
|
loaRole.texture = EquipDataCache.cacher.nTexture;
|
|
loaRole.texture = EquipDataCache.cacher.nTexture;
|
|
@@ -92,11 +86,8 @@ namespace GFGGame
|
|
_ui.m_comResult.m_txtScore.text = "" + _resultData.Score;
|
|
_ui.m_comResult.m_txtScore.text = "" + _resultData.Score;
|
|
_ui.m_comExpBar.m_txtLvl.text = string.Format("等级 {0}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl));
|
|
_ui.m_comExpBar.m_txtLvl.text = string.Format("等级 {0}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl));
|
|
|
|
|
|
- UpdateToCheckGuide(null);
|
|
|
|
|
|
|
|
_levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
_levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
-
|
|
|
|
-
|
|
|
|
if (!this._resultData.Result)
|
|
if (!this._resultData.Result)
|
|
{
|
|
{
|
|
_ui.m_comExpBar.target.visible = false;
|
|
_ui.m_comExpBar.target.visible = false;
|
|
@@ -111,7 +102,7 @@ namespace GFGGame
|
|
|
|
|
|
StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
|
|
StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
|
|
_ui.m_comExpBar.m_txtLvlAdded.text = string.Format("经验值:+{0}", fightCfg.exp);
|
|
_ui.m_comExpBar.m_txtLvlAdded.text = string.Format("经验值:+{0}", fightCfg.exp);
|
|
- Timers.inst.Add(0.5f, 1, this.AddExp);
|
|
|
|
|
|
+ // Timers.inst.Add(0.5f, 1, this.AddExp);
|
|
}
|
|
}
|
|
|
|
|
|
if (_levelCfg.type == ConstInstanceZonesType.Field)
|
|
if (_levelCfg.type == ConstInstanceZonesType.Field)
|
|
@@ -119,6 +110,9 @@ 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);
|
|
|
|
+
|
|
|
|
+ UpdateToCheckGuide(null);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -126,7 +120,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
base.OnHide();
|
|
base.OnHide();
|
|
InstanceZonesDataManager.isResultFighting = false;
|
|
InstanceZonesDataManager.isResultFighting = false;
|
|
- Timers.inst.Remove(AddExp);
|
|
|
|
|
|
+ // Timers.inst.Remove(AddExp);
|
|
if (_sceneObject != null)
|
|
if (_sceneObject != null)
|
|
{
|
|
{
|
|
GameObject.Destroy(_sceneObject);
|
|
GameObject.Destroy(_sceneObject);
|
|
@@ -134,6 +128,8 @@ namespace GFGGame
|
|
}
|
|
}
|
|
MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
|
|
MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
|
|
Timers.inst.Remove(CheckGuide);
|
|
Timers.inst.Remove(CheckGuide);
|
|
|
|
+ _ui.m_comResult.target.height = 0;
|
|
|
|
+ _ui.m_comExpBar.target.alpha = 0;
|
|
}
|
|
}
|
|
|
|
|
|
private async void OnClickBtnClose(object param)
|
|
private async void OnClickBtnClose(object param)
|
|
@@ -158,11 +154,9 @@ namespace GFGGame
|
|
ViewManager.Show<FieldView>();
|
|
ViewManager.Show<FieldView>();
|
|
ViewManager.Show<FieldFightInfoView>();
|
|
ViewManager.Show<FieldFightInfoView>();
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
-
|
|
|
|
InstanceZonesController.OnFinishStoryLevel(InstanceZonesDataManager.currentLevelCfgId, _resultData.FirstPass, true);
|
|
InstanceZonesController.OnFinishStoryLevel(InstanceZonesDataManager.currentLevelCfgId, _resultData.FirstPass, true);
|
|
//尝试显示奖励
|
|
//尝试显示奖励
|
|
BonusController.TryShowBonusList(_resultData.BonusList);
|
|
BonusController.TryShowBonusList(_resultData.BonusList);
|
|
@@ -170,7 +164,7 @@ namespace GFGGame
|
|
InstanceZonesDataManager.currentCardId = -1;
|
|
InstanceZonesDataManager.currentCardId = -1;
|
|
}
|
|
}
|
|
|
|
|
|
- private void AddExp(object param)
|
|
|
|
|
|
+ private void AddExp()
|
|
{
|
|
{
|
|
int lv = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
|
|
int lv = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
|
|
_ui.m_comExpBar.m_txtLvl.text = string.Format("等级 {0}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl));
|
|
_ui.m_comExpBar.m_txtLvl.text = string.Format("等级 {0}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl));
|