| | |
| | | public class FindPreciousFrameWin : Window
|
| | | {
|
| | | [SerializeField] FunctionButtonGroup m_FunctionGroup;
|
| | | [SerializeField] FunctionButton m_DemonJar;
|
| | | [SerializeField] FunctionButton m_WorldBoss;
|
| | | [SerializeField] FunctionButton m_BossHome;
|
| | | [SerializeField] FunctionButton m_PersonalBoss;
|
| | |
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_DemonJar.AddListener(ShowDemonJar);
|
| | | m_WorldBoss.AddListener(ShowWorldBoss);
|
| | | m_BossHome.AddListener(ShowBossHome);
|
| | | m_PersonalBoss.AddListener(ShowPersonalBoss);
|
| | |
| | | m_Right.gameObject.SetActive(m_FunctionGroup.unLockedCount > 1);
|
| | |
|
| | | m_FunctionGroup.TriggerByOrder(functionOrder);
|
| | | m_FunctionGroup.GotoOrder(functionOrder);
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void ShowDemonJar() |
| | | { |
| | | CloseSubWindows();
|
| | | WindowCenter.Instance.Open<DemonJarWin>(); |
| | | functionOrder = m_DemonJar.order; |
| | | }
|
| | |
|
| | | private void ShowWorldBoss()
|
| | | {
|
| | |
| | |
|
| | | private void CloseSubWindows()
|
| | | {
|
| | | WindowCenter.Instance.Close<WorldBossWin>();
|
| | | WindowCenter.Instance.Close<BossHomeWin>();
|
| | | WindowCenter.Instance.Close<PersonalBossWin>();
|
| | | WindowCenter.Instance.Close<ElderGodAreaWin>();
|
| | | WindowCenter.Instance.Close<PreciousDropRecordWin>();
|
| | | var subWindows = WindowConfig.Get().FindChildWindows("FindPreciousFrameWin");
|
| | | foreach ( var window in subWindows )
|
| | | {
|
| | | WindowCenter.Instance.Close(window);
|
| | | }
|
| | | }
|
| | |
|
| | | private void ShowLastFunction()
|