Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (isPlay && !isReady)
     {
         if (!uiAnimation.IsPlay && !isStandby)
         {
             uiAnimation.StandbyAnimation(isForward, aniPlayType, () => { isPlay = false; if (onAnimationFinish != null)
                                                                          {
                                                                              onAnimationFinish();
                                                                          }
                                          });
             uiAnimation.Play();
         }
         uiAnimation.UpdateAnimation();
     }
 }