コード例 #1
0
 public void SwitchTo(Edge edge)
 {
     EnsureBuild();
     if (!_edges.Contains(edge))
     {
         return;
     }
     RailSegmentComponent.RequestSwitchNet(Junction, edge);
 }
コード例 #2
0
 public override void OnBeforeRemovedFromContainer()
 {
     _segment = null;
     _bendy   = null;
     base.OnBeforeRemovedFromContainer();
 }
コード例 #3
0
 public override void OnAddedToContainer()
 {
     base.OnAddedToContainer();
     _segment = Container.Get <RailSegmentComponent>();
     _bendy   = Container.Get <BendyComponent>();
 }