public void InitConnection(RSConnection otherCar) { IsConnectedRight = true; RightCar = otherCar; RightCar.LeftCar = this; // this coupler is in connection CouplerRight.MakeCouplerConnection(); CouplerPointRight.MakePointConnection(otherCar); }
public void MakeConnection(RSConnection otherCar) { IsConnectedRight = true; RightCar = otherCar; RightCar.LeftCar = this; // this coupler is in connection CouplerRight.MakeCouplerConnection(); CouplerPointRight.MakePointConnection(otherCar); // make new comp from two CompositionManager.Instance.UpdateCompositionsAfterCoupling(RollingStock, RightCar.RollingStock); //for coupler indication EventManager.CarsCoupled(); }