void OnEnable(){ meshCallback = new MeshCallback (setMesh); pipe_manager = new PipeManager (meshCallback); pipe_manager.root_position = transform.position; pipe_manager.root_rotation = transform.rotation; setMesh (pipe_manager.pipe_mesh.mesh); Validate (); }
void OnEnable() { meshCallback = new MeshCallback(setMesh); pipe_manager = new PipeManager(meshCallback); pipe_manager.root_position = transform.position; pipe_manager.root_rotation = transform.rotation; setMesh(pipe_manager.pipe_mesh.mesh); Validate(); }
//List with positions and rotations of each rings public PipeLayout(PipeManager _parent) { parent = _parent; AddRing(new Vector3(0, 0, 0f), new Vector3(0, 0, 0), 0.2f); }
//List with positions and rotations of each rings public PipeLayout (PipeManager _parent) { parent = _parent; AddRing (new Vector3 (0, 0, 0f), new Vector3 (0, 0, 0), 0.2f); }