예제 #1
0
 public bool HasAnimationClip(string clipName)
 {
     if (AnimationData == null)
     {
         throw new Exception("The Animation Data is not set");
     }
     return(AnimationData.HasClip(clipName));
 }
예제 #2
0
        //bool callbackAdded = false;

        protected virtual void OnEnable()
        {
            if (autoPlay && AnimationData.HasClip(autoPlayClip))
            {
                PlayAnimation(autoPlayClip);
                onAnimationDone += s => OnClipFinish.DoneWithObject(this);
            }
        }