|
@@ -130,7 +130,7 @@ namespace GFGGame
|
|
|
_ui.m_btnExit.visible = false;
|
|
|
_ui.m_btnFightTimes.visible = false;
|
|
|
_ui.m_comCostCurrent.visible = false;
|
|
|
- _ui.m_list.RemoveChildren();
|
|
|
+ _ui.m_list.RemoveChildrenToPool();
|
|
|
InstanceZonesDataManager.isQuicklyFighting = true;
|
|
|
// InstanceZonesSProxy.FinishStoryFightQuickly(_levelID, _fightType == 1 ? 1 : times).Coroutine();
|
|
|
_index = 0;
|
|
@@ -170,8 +170,9 @@ namespace GFGGame
|
|
|
private void ShowBonusItem()
|
|
|
{
|
|
|
|
|
|
- UI_StoryFightQuicklyBonusListItem listItem = UI_StoryFightQuicklyBonusListItem.Proxy();
|
|
|
- _ui.m_list.AddChild(listItem.target);
|
|
|
+ _ui.m_list.AddItemFromPool("ui://Main/StoryFightQuicklyBonusListItem");//AddChild(listItem.target);
|
|
|
+ GObject obj = _ui.m_list.GetChildAt(_index);
|
|
|
+ UI_StoryFightQuicklyBonusListItem listItem = UI_StoryFightQuicklyBonusListItem.Proxy(obj);
|
|
|
listItem.m_list.itemRenderer = ListItemRender;
|
|
|
listItem.m_txtTimes.SetVar("n", "" + NumberUtil.GetChiniseNumberText(_index + 1)).FlushVars();
|
|
|
listItem.m_txtExp.SetVar("n", "" + _expAdd).FlushVars();
|
|
@@ -185,9 +186,9 @@ namespace GFGGame
|
|
|
}
|
|
|
private void ShowEnding()
|
|
|
{
|
|
|
- UI_StoryFightQuicklyComplete completeItem = UI_StoryFightQuicklyComplete.Proxy();
|
|
|
- _ui.m_list.AddChild(completeItem.target);
|
|
|
- UI_StoryFightQuicklyComplete.ProxyEnd();
|
|
|
+ // UI_StoryFightQuicklyComplete completeItem = UI_StoryFightQuicklyComplete.Proxy();
|
|
|
+ _ui.m_list.AddItemFromPool("ui://Main/StoryFightQuicklyComplete");//AddChild(completeItem.target);
|
|
|
+ // UI_StoryFightQuicklyComplete.ProxyEnd();
|
|
|
|
|
|
InstanceZonesDataManager.isQuicklyFighting = false;
|
|
|
|