public void RemoveConnection() { IsConnectedRight = false; TempCar = RightCar.RollingStock; RightCar.LeftCar = null; RightCar = null; CouplerRight.DestroyCouplerConnection(); CouplerPointRight.DestroyPointConnection(); }
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(); }