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