Esempio n. 1
0
        public void Init()
        {
            m_time     = 0;
            m_progress = 0;

            Array.Clear(m_instances, 0, m_instances.Length);
            m_focus = null;

            m_movieCommands.Clear();

            m_rootMovieStringId = GetStringId("_root");
            if (m_rootMovie != null)
            {
                m_rootMovie.Destroy();
            }
            m_rootMovie = new Movie(this, null,
                                    m_data.header.rootMovieId, SearchInstanceId(m_rootMovieStringId));
        }
Esempio n. 2
0
        private void DeleteAttachedMovie(Movie parent, Movie movie,
                                         bool destroy = true, bool deleteFromDetachedMovies = true)
        {
            string attachName  = movie.attachName;
            int    attachDepth = movie.depth;

            parent.m_attachedMovies.Remove(attachName);
            parent.m_attachedMovieList.Remove(attachDepth);
            parent.m_attachedMovieDescendingList.Remove(attachDepth);
            if (deleteFromDetachedMovies)
            {
                parent.m_detachedMovies.Remove(attachName);
            }
            if (destroy)
            {
                movie.Destroy();
            }
        }
Esempio n. 3
0
        private void DeleteAttachedMovie(Movie parent, Movie movie,
		bool destroy = true, bool deleteFromDetachedMovies = true)
        {
            string attachName = movie.attachName;
            int attachDepth = movie.depth;
            parent.m_attachedMovies.Remove(attachName);
            parent.m_attachedMovieList[attachDepth] = null;
            if (deleteFromDetachedMovies)
            parent.m_detachedMovies.Remove(attachName);
            parent.ShrinkAttachedMovieList();
            if (destroy)
            movie.Destroy();
        }