示例#1
0
 public void RemoveConnection()
 {
     IsConnectedRight = false;
     TempCar          = RightCar.RollingStock;
     RightCar.LeftCar = null;
     RightCar         = null;
     CouplerRight.DestroyCouplerConnection();
     CouplerPointRight.DestroyPointConnection();
 }
示例#2
0
 public void DestroyConnection()
 {
     CompositionManager.Instance.UpdateCompositionsAfterUncoupling(RightCar.RollingStock);
     IsConnectedRight = false;
     JustUncoupled    = true;
     TempCar          = RightCar.RollingStock;
     tempDist         = TempCar.OwnRun - RollingStock.OwnRun;
     RightCar.LeftCar = null;
     RightCar         = null;
     CouplerRight.DestroyCouplerConnection();
     CouplerPointRight.DestroyPointConnection();
 }