Ejemplo n.º 1
0
        /// <summary>
        /// Resume playback after being paused.
        /// </summary>
        public override void Resume()
        {
#if PROFILE_FILE
            Profiler.BeginSample("ActorItemTrack.UpdateTrack");
#endif // PROFILE_FILE
            base.Resume();

            var list   = GetTimelineItems();
            var length = list.Length;
            for (var i = 0; i < length; i++)
            {
                var item = list[i];
                CinemaActorAction action = item as CinemaActorAction;
                if (action != null)
                {
                    if (((elapsedTime > action.Firetime)) && (elapsedTime < (action.Firetime + action.Duration)))
                    {
                        var actorList = Actors;
                        var count     = actorList.Count;
                        for (var j = 0; j < count; j++)
                        {
                            var actor = actorList[j];
                            if (actor != null)
                            {
                                action.Resume(actor.gameObject);
                            }
                        }
                    }
                }
            }
#if PROFILE_FILE
            Profiler.EndSample();
#endif // PROFILE_FILE
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Resume playback after being paused.
        /// </summary>
        public override void Resume()
        {
            base.Resume();

            //GetActors(ref _actorList);

            List <TimelineItem> items = GetAllTimelineItems();

            for (int i = 0; i < items.Count; i++)
            {
                CinemaActorAction action = items[i] as CinemaActorAction;
                if (action != null)
                {
                    if (((elapsedTime > action.Firetime)) && (elapsedTime < (action.Firetime + action.Duration)))
                    {
                        for (int j = 0; j < _actorList.Count; j++)
                        {
                            if (_actorList[j] != null)
                            {
                                action.Resume(_actorList[j].gameObject);
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Resume playback after being paused.
 /// </summary>
 public override void Resume()
 {
     base.Resume();
     {
         var __array4       = GetTimelineItems();
         var __arrayLength4 = __array4.Length;
         for (int __i4 = 0; __i4 < __arrayLength4; ++__i4)
         {
             var item = (TimelineItem)__array4[__i4];
             {
                 CinemaActorAction action = item as CinemaActorAction;
                 if (action != null)
                 {
                     if (((elapsedTime > action.Firetime)) && (elapsedTime < (action.Firetime + action.Duration)))
                     {
                         {
                             var __list17      = Actors;
                             var __listCount17 = __list17.Count;
                             for (int __i17 = 0; __i17 < __listCount17; ++__i17)
                             {
                                 var actor = (Transform)__list17[__i17];
                                 {
                                     if (actor != null)
                                     {
                                         action.Resume(actor.gameObject);
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Resume playback after being paused.
 /// </summary>
 public override void Resume()
 {
     base.Resume();
     foreach (TimelineItem item in GetTimelineItems())
     {
         CinemaActorAction action = item as CinemaActorAction;
         if (action != null)
         {
             if (((elapsedTime > action.Firetime)) && (elapsedTime < (action.Firetime + action.Duration)))
             {
                 foreach (Transform actor in Actors)
                 {
                     if (actor != null)
                     {
                         action.Resume(actor.gameObject);
                     }
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Resume playback after being paused.
 /// </summary>
 public override void Resume()
 {
     base.Resume();
     TimelineItem[] items = GetTimelineItems();
     for (int i = 0; i < items.Length; i++)
     {
         CinemaActorAction action = items[i] as CinemaActorAction;
         if (action != null)
         {
             if (((elapsedTime > action.Firetime)) && (elapsedTime < (action.Firetime + action.Duration)))
             {
                 for (int j = 0; j < Actors.Count; j++)
                 {
                     if (Actors[j] != null)
                     {
                         action.Resume(Actors[j].gameObject);
                     }
                 }
             }
         }
     }
 }