Ejemplo n.º 1
0
    private void Move()
    {
        _timeCounter = 0f;
        _status      = ElementsStatus.Moving;
        transform.DOLocalMoveY(_endPos.y, _displayer.ScrollDuration).OnComplete(OnTweenFinished).SetEase(Ease.Linear);

        //alpha animation..
        _canvasGroup = GetComponentInChildren <CanvasGroup> ();
        _canvasGroup.DOFade(0, _displayer.ScrollDuration);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Starts the move after _timeGap seconds...
 /// </summary>
 private void StartMove()
 {
     //make sure the text is active.
     //the default ease of DoTewwen is not Linear.
     //TODO:延时GetAheadTime后插入....
     //when gap not reach, how to ..
     //transform.DOScale(1f, _timeGap).OnComplete(Move);
     _timeCounter = 0f;
     _status      = ElementsStatus.Inited;
     //Move();
 }
Ejemplo n.º 3
0
 //Destroy when finished...
 private void OnTweenFinished()
 {
     _status = ElementsStatus.Finished;
     Destroy(gameObject, _displayer.KillBulletTextDelay);
 }