Exemple #1
0
        protected virtual void Awake()
        {
            _meshFilter = GetComponent <MeshFilter>();

            _polyMesh = Pool <PolyMesh> .Spawn();

            _polyMesh.DisableEdgeAdjacencyData();
            _polyMesh.Clear();

            _unityMeshA = Pool <Mesh> .Spawn();

            _unityMeshA.Clear();
            _unityMeshA.MarkDynamic();
            _unityMeshB = Pool <Mesh> .Spawn();

            _unityMeshB.Clear();
            _unityMeshB.MarkDynamic();
        }