Exemple #1
0
 public void _AddAnimation(RBAnimation animation)
 {
     if (_animations.ContainsKey(animation))
     {
         _animations[animation].Cancel();
     }
     _animations[animation] = animation;
 }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            RBAnimation a = (RBAnimation)obj;

            return(this.target == a.target && this.property == a.property && this.field == a.field && this.arrayIndex == a.arrayIndex);
        }
Exemple #3
0
 public void _RemoveAnimation(RBAnimation animation)
 {
     _animations.Remove(animation);
 }
Exemple #4
0
 public static Promise <RBAnimation> WrapAnimation(RBAnimation animation, float delay = 0.0f)
 {
     return(new Promise <RBAnimation>((resolve, reject) => animation.Start(resolve, delay)));
 }