コード例 #1
0
ファイル: FContainer.cs プロジェクト: wtrd1234/GameProject3
        public void Rebuild()
        {
            _timelines.Clear();
            Transform t = transform;

            for (int i = 0; i != t.childCount; ++i)
            {
                FTimeline timeline = t.GetChild(i).GetComponent <FTimeline>();
                if (timeline != null)
                {
//					if( timeline.IsGlobal )
//						_globalTimeline = timeline;
//					else
                    _timelines.Add(timeline);

                    timeline.SetContainer(this);
                    timeline.Rebuild();
                }
            }

            UpdateTimelineIds();
        }
コード例 #2
0
        /// @brief Rebuilds the sequence. This is to be called whenever timelines,
        /// tracks, or events are added / removed from the sequence.
        /// @note You should only call this in editor mode, avoid calling it at runtime.
        public void Rebuild()
        {
#if FLUX_DEBUG
            Debug.Log("Rebuilding");
#endif
            Transform t = TimelineContainer;
            _timelines.Clear();

            for (int i = 0; i != t.childCount; ++i)
            {
                FTimeline timeline = t.GetChild(i).GetComponent <FTimeline>();

                if (timeline)
                {
                    _timelines.Add(timeline);
                    timeline.SetSequence(this);
                    timeline.Rebuild();
                }
            }

            UpdateTimelineIds();
        }