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