|
@@ -134,7 +134,7 @@ namespace GFGGame
|
|
|
{
|
|
|
// int _index = _storyLevelCfgs.Count - index - 1;
|
|
|
UI_ListLevelItem item = UI_ListLevelItem.Proxy(obj);
|
|
|
- item.m_c1.selectedIndex = index % 2 == 0 ? 0 : 1;
|
|
|
+ //item.m_c1.selectedIndex = index % 2 == 0 ? 0 : 1;
|
|
|
item.m_txtName.text = _storyLevelCfgs[index].name;
|
|
|
bool isFight = string.IsNullOrEmpty(_storyLevelCfgs[index].storyStartID);
|
|
|
string resBg = isFight ? "cyjd_di_1" : "cyjd_di_2";
|
|
@@ -265,21 +265,25 @@ namespace GFGGame
|
|
|
_ui.m_list.GetChildAt(i).visible = false;
|
|
|
}
|
|
|
itemIndex = 0;
|
|
|
- Timers.inst.Add(0.2f, _ui.m_list.numChildren, AddItemUpdate, 1);
|
|
|
+ Timers.inst.Add(0.05f, _ui.m_list.numChildren, AddItemUpdate, 1);
|
|
|
}
|
|
|
|
|
|
private void AddItemUpdate(object param)
|
|
|
{
|
|
|
_ui.m_list.GetChildAt(itemIndex).visible = true;
|
|
|
UI_ListLevelItem item = UI_ListLevelItem.Proxy(_ui.m_list.GetChildAt(itemIndex));
|
|
|
+ Vector3 position = item.target.position;
|
|
|
if (itemIndex % 2 == 0)
|
|
|
{
|
|
|
- item.m_ToLeft.Play();
|
|
|
+ //item.m_ToLeft.Play();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- item.m_ToRight.Play();
|
|
|
+ position.x = 200;
|
|
|
+ item.target.position = position;
|
|
|
+ //item.m_ToRight.Play();
|
|
|
}
|
|
|
+ item.m_Left.Play();
|
|
|
itemIndex++;
|
|
|
UI_ListLevelItem.ProxyEnd();
|
|
|
}
|