public AnimationHandle RunAnimation(Avatar avatar, Animation animation)
        {
            var instance = new AnimationHandle(this);

            instance.Animation = animation;
            instance.Avatar    = avatar;

            Animations.Add(instance);
            return(instance);
        }
 public void DisposeAnimation(AnimationHandle animation)
 {
     this.Animations.Remove(animation);
 }
Beispiel #3
0
        /// <summary>
        /// Runs an animation.
        /// </summary>
        /// <param name="avatar">The avatar to run animation for.</param>
        /// <param name="animation">The animation to run.</param>
        /// <returns>Handle to the animation run.</returns>
        public AnimationHandle RunAnimation(Avatar avatar, Animation animation)
        {
            var instance = new AnimationHandle(this);
            instance.Animation = animation;
            instance.Avatar = avatar;

            Animations.Add(instance);
            return instance;
        }
Beispiel #4
0
 /// <summary>
 /// Disposes an animation.
 /// </summary>
 /// <param name="animation">The animation to dispose.</param>
 public void DisposeAnimation(AnimationHandle animation)
 {
     this.Animations.Remove(animation);
 }