Example #1
0
        /// <summary>
        /// Stop the playback of this track.
        /// </summary>
        public override void Stop()
        {
            base.Stop();
            base.elapsedTime = 0f;
            foreach (TimelineItem item in GetTimelineItems())
            {
                CinemaActorEvent cinemaEvent = item as CinemaActorEvent;
                if (cinemaEvent != null)
                {
                    foreach (Transform actor in Actors)
                    {
                        if (actor != null)
                        {
                            cinemaEvent.Stop(actor.gameObject);
                        }
                    }
                }

                CinemaActorAction action = item as CinemaActorAction;
                if (action != null)
                {
                    foreach (Transform actor in Actors)
                    {
                        if (actor != null)
                        {
                            action.Stop(actor.gameObject);
                        }
                    }
                }
            }
        }
Example #2
0
        /// <summary>
        /// Stop the playback of this track.
        /// </summary>
        public override void Stop()
        {
            base.Stop();
            base.elapsedTime = 0f;
            TimelineItem[] items = GetTimelineItems();
            for (int i = 0; i < items.Length; i++)
            {
                CinemaActorEvent cinemaEvent = items[i] as CinemaActorEvent;
                if (cinemaEvent != null)
                {
                    for (int j = 0; j < Actors.Count; j++)
                    {
                        if (Actors[j] != null)
                        {
                            cinemaEvent.Stop(Actors[j].gameObject);
                        }
                    }
                }

                CinemaActorAction action = items[i] as CinemaActorAction;
                if (action != null)
                {
                    for (int j = 0; j < Actors.Count; j++)
                    {
                        if (Actors[j] != null)
                        {
                            action.Stop(Actors[j].gameObject);
                        }
                    }
                }
            }
        }
Example #3
0
        /// <summary>
        /// Stop the playback of this track.
        /// </summary>
        public override void Stop()
        {
            base.Stop();
            base.elapsedTime = 0f;
            {
                var __array5       = GetTimelineItems();
                var __arrayLength5 = __array5.Length;
                for (int __i5 = 0; __i5 < __arrayLength5; ++__i5)
                {
                    var item = (TimelineItem)__array5[__i5];
                    {
                        CinemaActorEvent cinemaEvent = item as CinemaActorEvent;
                        if (cinemaEvent != null)
                        {
                            {
                                var __list18      = Actors;
                                var __listCount18 = __list18.Count;
                                for (int __i18 = 0; __i18 < __listCount18; ++__i18)
                                {
                                    var actor = (Transform)__list18[__i18];
                                    {
                                        if (actor != null)
                                        {
                                            cinemaEvent.Stop(actor.gameObject);
                                        }
                                    }
                                }
                            }
                        }

                        CinemaActorAction action = item as CinemaActorAction;
                        if (action != null)
                        {
                            {
                                var __list19      = Actors;
                                var __listCount19 = __list19.Count;
                                for (int __i19 = 0; __i19 < __listCount19; ++__i19)
                                {
                                    var actor = (Transform)__list19[__i19];
                                    {
                                        if (actor != null)
                                        {
                                            action.Stop(actor.gameObject);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Example #4
0
        /// <summary>
        /// Stop the playback of this track.
        /// </summary>
        public override void Stop()
        {
#if PROFILE_FILE
            Profiler.BeginSample("ActorItemTrack.Stop");
#endif // PROFILE_FILE
            base.Stop();
            base.elapsedTime = 0f;

            var list   = GetTimelineItems();
            var length = list.Length;
            for (var i = 0; i < length; i++)
            {
                var item = list[i];
                CinemaActorEvent cinemaEvent = item as CinemaActorEvent;
                if (cinemaEvent != null)
                {
                    var actorList = Actors;
                    var count     = actorList.Count;
                    for (var j = 0; j < count; j++)
                    {
                        var actor = actorList[j];
                        if (actor != null)
                        {
                            cinemaEvent.Stop(actor.gameObject);
                        }
                    }
                }

                CinemaActorAction action = item as CinemaActorAction;
                if (action != null)
                {
                    var actorList = Actors;
                    var count     = actorList.Count;
                    for (var j = 0; j < count; j++)
                    {
                        var actor = actorList[j];
                        if (actor != null)
                        {
                            action.Stop(actor.gameObject);
                        }
                    }
                }
            }
#if PROFILE_FILE
            Profiler.EndSample();
#endif // PROFILE_FILE
        }
Example #5
0
        /// <summary>
        /// Stop the playback of this track.
        /// </summary>
        public override void Stop()
        {
            base.Stop();
            base.elapsedTime = 0f;

            //GetActors(ref _actorList);

            List <TimelineItem> items = GetAllTimelineItems();

            for (int i = 0; i < items.Count; i++)
            {
                CinemaActorEvent cinemaEvent = items[i] as CinemaActorEvent;
                if (cinemaEvent != null)
                {
                    for (int j = 0; j < _actorList.Count; j++)
                    {
                        if (_actorList[j] != null)
                        {
                            cinemaEvent.Stop(_actorList[j].gameObject);
                        }
                    }
                }

                CinemaActorAction action = items[i] as CinemaActorAction;
                if (action != null)
                {
                    for (int j = 0; j < _actorList.Count; j++)
                    {
                        if (_actorList[j] != null)
                        {
                            action.Stop(_actorList[j].gameObject);
                        }
                    }
                }
            }
        }