Пример #1
0
 public void Detach()
 {
     if (started && !ended)
     {
         ended = true;
         if (listener != null)
         {
             listener.OnAnimationEnd(this);
         }
     }
 }
Пример #2
0
 private void OnAnimationEnd()
 {
     if (animationListener != null)
     {
         bool success = finishedState == AnimationState.FinishedOk;
         animationListener.OnAnimationEnd(success);
     }
 }
Пример #3
0
 private void OnAnimationEnd(string animationName)
 {
     if (null != mListener)
     {
         mListener.OnAnimationEnd(animationName);
     }
     if (null != mPlayEndCallBack)
     {
         mPlayEndCallBack(animationName);
     }
     if (mSoundEffectTag != 0)
     {
         SoundManager.Instance.StopSoundEffectByTag(mSoundEffectTag);
         mSoundEffectTag = 0;
     }
 }