Ejemplo n.º 1
0
    public void ChangeOutput(IOMarker m)
    {
        var wB = this.GetComponent <WorkBuilding>();

        if (wB && wB.wbChangeOutput(m))
        {
            DeactivateAllPotentialMarkers();
            SelectBuilding();
        }
    }
Ejemplo n.º 2
0
 private void selectMarker(IOMarker m)
 {
     if (inputChangeBuilding)
     {
         inputChangeBuilding.ChangeInput(m);
     }
     if (outputChangeBuilding)
     {
         outputChangeBuilding.ChangeOutput(m);
     }
 }
Ejemplo n.º 3
0
 public bool wbChangeOutput(IOMarker m)
 {
     if (outputLocation && m.point && m.point.FreeForUse())
     {
         outputLocation.StopUsing(this);
         m.point.UseAsOPutput(this);
         outputLocation = m.point;
         return(true);
     }
     return(false);
 }
Ejemplo n.º 4
0
 //IOCHANGE
 public bool wBChangeInput(IOMarker m)
 {
     //Check if there is a InputLocation and the Place is free
     if (inputLocation && m.point && m.point.FreeForUse())
     {
         inputLocation.StopUsing(this);
         m.point.UseAsInput(this);
         inputLocation = m.point;
         return(true);
     }
     return(false);
 }