| | |
| | |
|
| | | public bool IsPlaying { get; private set; }
|
| | |
|
| | | Coroutine m_Coroutine = null;
|
| | |
|
| | | public override void Init<T>(List<T> _datas, bool _stepByStep = false)
|
| | | {
|
| | | base.Init(_datas, _stepByStep);
|
| | | IsPlaying = false;
|
| | | this.enabled = true;
|
| | |
|
| | | if (m_Coroutine != null)
|
| | | {
|
| | | StopCoroutine(m_Coroutine);
|
| | | m_Coroutine = null;
|
| | | }
|
| | | }
|
| | |
|
| | | public void StartEnterAnmation()
|
| | | public void DisplayAnimation()
|
| | | {
|
| | | IsPlaying = true;
|
| | | this.enabled = false;
|
| | |
|
| | | StartCoroutine(Co_EnterAnimation());
|
| | | m_Coroutine = StartCoroutine(Co_DisplayAnimation());
|
| | | }
|
| | |
|
| | | IEnumerator Co_EnterAnimation()
|
| | | IEnumerator Co_DisplayAnimation()
|
| | | {
|
| | | for (int i = 0; i < infiniteItems.Count; i++)
|
| | | {
|
| | |
| | | time = behaviour.alphaTween.duration - m_FadeInTime;
|
| | | }
|
| | |
|
| | | time = Mathf.Max(0, time);
|
| | |
|
| | | yield return WaitingForSecondConst.GetWaitForSeconds(time);
|
| | |
|
| | | IsPlaying = false;
|
| | | this.enabled = true;
|
| | | }
|