Пример #1
0
 public void Init()
 {
     mesh = shape.Build();
     if (material == null)
     {
         Debug.LogWarning("ShapeData material is null");
     }
 }
Пример #2
0
 void Start()
 {
     GetComponent <MeshFilter>().mesh = shape.Build();
 }