| | |
| | | [SerializeField] UIAlphaTween m_UIAlphaTween; |
| | | [SerializeField] Text m_TextLV; |
| | | [SerializeField] UIEffect m_UIEffect; |
| | | public float Delay = 0.5f; |
| | | #region Built-in |
| | | protected override void BindController() |
| | | { |
| | |
| | | protected override void OnActived()
|
| | | {
|
| | | m_UIEffect.Play();
|
| | | m_UIEffect.OnComplete = () => { Close(); };
|
| | | m_ScaleTween.Play(false,()=> { m_UIAlphaTween.Play(); });
|
| | | m_UIEffect.OnComplete = () =>
|
| | | {
|
| | | StopCoroutine(DelayIEnumerator());
|
| | | Close();
|
| | | };
|
| | | m_ScaleTween.Play(false, () => { StartCoroutine(DelayIEnumerator()); });
|
| | | } |
| | | protected override void OnAfterOpen() |
| | | {
|
| | |
| | | protected override void OnAfterClose() |
| | | { |
| | | }
|
| | |
|
| | | IEnumerator DelayIEnumerator()
|
| | | {
|
| | | yield return new WaitForSeconds(Delay);
|
| | | m_UIAlphaTween.Play();
|
| | | }
|
| | | #endregion
|
| | | private void windowBeforeClose(Window _window)
|
| | | {
|
| | | if (_window is MainInterfaceWin)
|
| | | {
|
| | | StopCoroutine(DelayIEnumerator());
|
| | | Close();
|
| | | }
|
| | | }
|