Example #1
0
        public void GenMesh(List <IGridInfo> grids)
        {
            if (_meshGenerator == null)
            {
                _meshGenerator = FindObjectOfType <MeshGeneration>();
            }

            _meshGenerator.GenerateMesh(grids);
        }
Example #2
0
 private void Start()
 {
     _meshGenerator = FindObjectOfType <MeshGeneration>();
 }