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