Пример #1
0
 public void reset()
 {
     tra.position=posOrin;
     if(col)col.enabled=true;
     pick=null;
     sur="free";
     checkCircuit();
 }
Пример #2
0
 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();
 }
Пример #3
0
 public Neighbor(Pipe pipe,int direction)
 {
     this.pipe=pipe;
     this.direction=direction;
 }
Пример #4
0
 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;
     }
 }