| | |
| | | {
|
| | | [SerializeField] float m_FadeInTime = 0.2f;
|
| | |
|
| | | public bool IsPlaying { get; private set; }
|
| | | bool m_IsPlaying = false;
|
| | | public bool IsPlaying
|
| | | {
|
| | | get { return m_IsPlaying; }
|
| | | private set
|
| | | {
|
| | | m_IsPlaying = value;
|
| | | this.enabled = !m_IsPlaying;
|
| | | }
|
| | | }
|
| | |
|
| | | Coroutine m_Coroutine = null;
|
| | |
|
| | |
| | | {
|
| | | base.Init(_datas, _stepByStep);
|
| | | IsPlaying = false;
|
| | | this.enabled = true;
|
| | |
|
| | | if (m_Coroutine != null)
|
| | | {
|
| | |
| | | public void DisplayAnimation()
|
| | | {
|
| | | IsPlaying = true;
|
| | | this.enabled = false;
|
| | |
|
| | | m_Coroutine = StartCoroutine(Co_DisplayAnimation());
|
| | | }
|
| | |
| | | {
|
| | | var behaviour = infiniteItems[i] as HazyRegionIncidentBehaviour;
|
| | | behaviour.linerMove.duration = behaviour.alphaTween.duration;
|
| | | var fromX = content.anchoredPosition.x + width / 2 + cellSize.x;
|
| | | var fromX = content.anchoredPosition.x + width / 2 + m_BoundOffset.left + cellSize.x;
|
| | | behaviour.linerMove.from = content.anchoredPosition.SetX(fromX);
|
| | | var toX = content.anchoredPosition.x - width / 2 + cellSize.x / 2 + i * (cellSize.x + spacing.x);
|
| | | var toX = content.anchoredPosition.x - width / 2 + m_BoundOffset.left
|
| | | + cellSize.x / 2 + i * (cellSize.x + spacing.x);
|
| | | behaviour.linerMove.to = content.anchoredPosition.SetX(toX);
|
| | | behaviour.alphaTween.Play();
|
| | | behaviour.linerMove.Begin();
|
| | |
| | | yield return WaitingForSecondConst.GetWaitForSeconds(time);
|
| | |
|
| | | IsPlaying = false;
|
| | | this.enabled = true;
|
| | | }
|
| | | }
|
| | | } |