Пример #1
0
 private void UpdateState(IMyPistonBase piston)
 {
     MaxExtension += piston.MaxLimit;
     MinExtension += piston.MinLimit;
     Extension    += piston.CurrentPosition;
     if (!piston.IsOperational())
     {
         return;
     }
     Operable++;
     Velocity += piston.Velocity;
 }