修复返回mainTitle错误
This commit is contained in:
parent
7da02fd3ce
commit
017e1cb556
|
|
@ -99,6 +99,17 @@ public class UI_TaskListPanel : BasePanel
|
||||||
GameManager.UIMgr.HidePanel<UI_GrowthPeriodPanel>();
|
GameManager.UIMgr.HidePanel<UI_GrowthPeriodPanel>();
|
||||||
GameManager.UIMgr.HidePanel<UI_MenuBar>();
|
GameManager.UIMgr.HidePanel<UI_MenuBar>();
|
||||||
GameManager.UIMgr.HidePanel<UI_TaskListPanel>();
|
GameManager.UIMgr.HidePanel<UI_TaskListPanel>();
|
||||||
|
|
||||||
|
|
||||||
|
UI_BGPanel bg = GameManager.UIMgr.GetPanel<UI_BGPanel>();
|
||||||
|
UI_MainTitlePanel mainTitle = GameManager.UIMgr.GetPanel<UI_MainTitlePanel>();
|
||||||
|
int mt_Index = mainTitle.transform.GetSiblingIndex();
|
||||||
|
int bg_Index = bg.transform.GetSiblingIndex();
|
||||||
|
if (mt_Index < bg_Index)
|
||||||
|
{
|
||||||
|
mainTitle.transform.SetSiblingIndex(bg_Index);
|
||||||
|
bg.transform.SetSiblingIndex(mt_Index);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue