public void Detach() { if (started && !ended) { ended = true; if (listener != null) { listener.OnAnimationEnd(this); } } }
private void OnAnimationEnd() { if (animationListener != null) { bool success = finishedState == AnimationState.FinishedOk; animationListener.OnAnimationEnd(success); } }
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; } }