| | |
| | | |
| | | [SerializeField] FunctionButtonGroup m_FunctionGroup; |
| | | [SerializeField] FunctionButton m_DemonJar; |
| | | [SerializeField] FunctionButton m_DogzDungeon; |
| | | |
| | | [SerializeField] Button m_Left; |
| | | [SerializeField] Button m_Right; |
| | |
| | | protected override void AddListeners() |
| | | { |
| | | m_DemonJar.AddListener(ShowDemonJar); |
| | | |
| | | m_DogzDungeon.AddListener(ShowDogzDungeon); |
| | | m_Left.AddListener(ShowLastFunction); |
| | | m_Right.AddListener(ShowNextFunction); |
| | | m_Close.AddListener(CloseClick); |
| | |
| | | functionOrder = m_DemonJar.order; |
| | | } |
| | | |
| | | private void ShowDogzDungeon() |
| | | { |
| | | CloseSubWindows(); |
| | | |
| | | if (windowState == WindowState.Opened) |
| | | { |
| | | WindowCenter.Instance.OpenWithoutAnimation<DogzDungeonWin>(); |
| | | } |
| | | else |
| | | { |
| | | WindowCenter.Instance.Open<DogzDungeonWin>(); |
| | | } |
| | | |
| | | functionOrder = m_DogzDungeon.order; |
| | | } |
| | | |
| | | private void CloseSubWindows() |
| | | { |
| | | WindowCenter.Instance.CloseImmediately<DemonJarWin>(); |
| | | WindowCenter.Instance.CloseImmediately<DogzDungeonWin>(); |
| | | } |
| | | |
| | | private void ShowLastFunction() |