void AddAnimationInternal(TweenAnimation anim) { anim.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector; if (_animations == null) { _animations = new List <TweenAnimation>(4); } _animations.Add(anim); }
static bool AnyContainsInTweenList(TweenAnimation target) { foreach (var tween in _tweenList) { if (tween._animations != null && tween._animations.Contains(target)) { return(true); } } return(false); }
public void UndoRemoveAnimation(TweenAnimation animation) { Undo.RecordObject(this, "RemoveAnimation"); _animations.Remove(animation); Undo.DestroyObjectImmediate(animation); }