Example #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 ();
		}
Example #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();
 }
Example #3
0
        //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);
        }
Example #4
0
		//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);
		}