public void Init() { mesh = shape.Build(); if (material == null) { Debug.LogWarning("ShapeData material is null"); } }
void Start() { GetComponent <MeshFilter>().mesh = shape.Build(); }