public override void Create() { if (body == null) { body = GetComponent <Body>(); } if (verts == null) { verts = GetComponent <ClothVerts>(); } if (tris == null) { tris = GetComponent <ClothTris>(); } if (forces == null) { forces = GetComponent <Life>(); } if (constraint == null) { constraint = GetComponent <ConstraintLife>(); } if (connections == null) { connections = GetComponent <ConnectionList>(); } connections.verts = verts; SafeInsert(body); SafeInsert(connections); SafeInsert(forces); SafeInsert(constraint); SafeInsert(normalize); }
public override void Create() { if (toIndex == null) { toIndex = GetComponent <ClothVerts>(); } clothVerts = (ClothVerts)toIndex; }