Exemple #1
0
		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 ();
		}
Exemple #2
0
 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();
 }