// -Public API- public void StartAnimation(OnAnimationCompleteDelegate onAnimationComplete) { Debug.Assert(onAnimationComplete != null); Debug.Assert(m_AnimationPlayer != null); Debug.Assert(m_Animation != null); m_AnimationPlayer.Play(m_Animation.name); m_AnimationWasPlaying = true; m_OnAnimationComplete = onAnimationComplete; }
public void SetOnAnimationEndCompleteDelegate(OnAnimationCompleteDelegate onAnimationEndCompleteDelegate) { _onAnimationCompleteDelegate = onAnimationEndCompleteDelegate; }