Ejemplo n.º 1
0
        protected virtual void Reset()
        {
            if (mFilter == null)
            {
                mFilter = GetComponent <MeshFilter>();
            }
            mFilter.hideFlags = HideFlags.HideInInspector;

            if (mRenderer == null)
            {
                mRenderer = GetComponent <MeshRenderer>();
            }

            mRenderer.receiveShadows = false;
            mRenderer.castShadows    = false;

            buffer        = new VLSMeshBuffer(mFilter);
            isInitialized = false;
        }
Ejemplo n.º 2
0
        protected override void Awake()
        {
            if (mFilter == null)
            {
                mFilter = GetComponent <MeshFilter>();
            }
            mFilter.hideFlags = HideFlags.HideInInspector;

            if (mRenderer == null)
            {
                mRenderer = GetComponent <MeshRenderer>();
            }

            mRenderer.receiveShadows = false;
            mRenderer.castShadows    = false;
            //mRenderer.hideFlags = HideFlags.HideInInspector;

            buffer = new VLSMeshBuffer(mFilter);

            base.Awake();

            isInitialized = false;
        }
Ejemplo n.º 3
0
        protected virtual void Reset()
        {
            if (mFilter == null)
                mFilter = GetComponent<MeshFilter>();
            mFilter.hideFlags = HideFlags.HideInInspector;

            if (mRenderer == null)
                mRenderer = GetComponent<MeshRenderer>();

            mRenderer.receiveShadows = false;
            mRenderer.castShadows = false;

            buffer = new VLSMeshBuffer(mFilter);
            isInitialized = false;
        }
Ejemplo n.º 4
0
        protected override void Awake()
        {
            if (mFilter == null)
                mFilter = GetComponent<MeshFilter>();
            mFilter.hideFlags = HideFlags.HideInInspector;

            if (mRenderer == null)
                mRenderer = GetComponent<MeshRenderer>();

            mRenderer.receiveShadows = false;
            mRenderer.castShadows = false;
            //mRenderer.hideFlags = HideFlags.HideInInspector;
            
            buffer = new VLSMeshBuffer(mFilter);

            base.Awake();

            isInitialized = false;
        }