Exemple #1
0
 protected void AnimateListExit(Action callback)
 {
     ListEnterAnimation.Stop();
     ListExitAnimation.Stop();
     ListExitAnimation
     .SetDuration(0.4f)
     .SetAlpha(1f, 0f)
     .SetPosition(ItensHolder.transform.localPosition, ItensHolder.transform.localPosition + Vector3.up * 15, true)
     .Play(callback);
 }
Exemple #2
0
 protected void AnimateListEnter(Action callback = null)
 {
     ListEnterAnimation.Stop();
     ListExitAnimation.Stop();
     ListEnterAnimation
     .SetDuration(0.2f)
     .SetAlpha(0f, 1f)
     .SetPosition(_itensHolderPosition + Vector3.down * 5, _itensHolderPosition, true)
     .Play(callback);
 }