Esempio n. 1
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++)
            {
                ActorEvent cinemaEvent = items[i] as ActorEvent;
                if (cinemaEvent != null)
                {
                    if (Actor != null)
                    {
                        cinemaEvent.Stop(Actor.gameObject);
                    }
                }

                ActorAction action = items[i] as ActorAction;
                if (action != null)
                {
                    if (Actor != null)
                    {
                        action.Stop(Actor.gameObject);
                    }
                }
            }
        }