示例#1
0
        public virtual void clear(bool destroyChildren)
        {
            if (m_ObjectsManager != null)
            {
                m_ObjectsManager.clear(destroyChildren);
            }

            if (cachedFilter.sharedMesh != null)
            {
                cachedFilter.sharedMesh.Clear();
            }

            cachedRenderer.sharedMaterials = new Material[0];

            m_GAFAsset           = null;
            resource             = null;
            m_Settings           = new GAFAnimationPlayerSettings();
            m_SequenceIndex      = 0;
            m_CurrentFrameNumber = 1;

            m_IsInitialized = false;
        }
        public virtual void clear(bool destroyChildren)
        {
            if (m_ObjectsManager != null)
                m_ObjectsManager.clear(destroyChildren);

            if (cachedFilter.sharedMesh != null)
                cachedFilter.sharedMesh.Clear();

            cachedRenderer.sharedMaterials = new Material[0];

            m_GAFAsset = null;
            resource = null;
            m_Settings = new GAFAnimationPlayerSettings();
            m_SequenceIndex = 0;
            m_CurrentFrameNumber = 1;

            m_IsInitialized = false;
        }