public void SwitchTo(Edge edge) { EnsureBuild(); if (!_edges.Contains(edge)) { return; } RailSegmentComponent.RequestSwitchNet(Junction, edge); }
public override void OnBeforeRemovedFromContainer() { _segment = null; _bendy = null; base.OnBeforeRemovedFromContainer(); }
public override void OnAddedToContainer() { base.OnAddedToContainer(); _segment = Container.Get <RailSegmentComponent>(); _bendy = Container.Get <BendyComponent>(); }