Exemplo n.º 1
0
        public AnimationHandle RunAnimation(Avatar avatar, Animation animation)
        {
            var instance = new AnimationHandle(this);

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

            Animations.Add(instance);
            return(instance);
        }
Exemplo n.º 2
0
 public void DisposeAnimation(AnimationHandle animation)
 {
     this.Animations.Remove(animation);
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Disposes an animation.
 /// </summary>
 /// <param name="animation">The animation to dispose.</param>
 public void DisposeAnimation(AnimationHandle animation)
 {
     this.Animations.Remove(animation);
 }