Beispiel #1
0
 private void Awake()
 {
     if (_mesh == null)
     {
         var builder = new IcosahedralSphereBuilder();
         _mesh = builder.Build(Subdivisions, Radius);
     }
     GetComponent<MeshFilter>().mesh = _mesh;
 }
Beispiel #2
0
 public void OnDrawGizmos()
 {
     if (_mesh == null)
     {
         var builder = new IcosahedralSphereBuilder();
         _mesh = builder.Build(Subdivisions, Radius);
     }
     GetComponent<MeshFilter>().mesh = _mesh;
 }