Esempio n. 1
0
 public void _AddAnimation(RBAnimation animation)
 {
     if (_animations.ContainsKey(animation))
     {
         _animations[animation].Cancel();
     }
     _animations[animation] = animation;
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public void _RemoveAnimation(RBAnimation animation)
 {
     _animations.Remove(animation);
 }
Esempio n. 4
0
 public static Promise <RBAnimation> WrapAnimation(RBAnimation animation, float delay = 0.0f)
 {
     return(new Promise <RBAnimation>((resolve, reject) => animation.Start(resolve, delay)));
 }