public void reset() { tra.position=posOrin; if(col)col.enabled=true; pick=null; sur="free"; checkCircuit(); }
public void seat(Cell cell) { if(col)col.enabled=true; tra.position=cell.tra.position; sur="set"; pick=null; if(this.cell)this.cell.collider.enabled=true; this.cell=cell; cell.collider.enabled=false; checkCircuit(); }
public Neighbor(Pipe pipe,int direction) { this.pipe=pipe; this.direction=direction; }
void OnPress(bool isDown) { if(!isDown||isFixed)return; switch(sur){ case"set": case"free": default: col.enabled=true; if(cell)cell.col.enabled=true; sur="dragging"; pick=this; break; } }