Fixes and cleanup.
This commit is contained in:
@ -7,8 +7,6 @@ namespace IngameScript
|
||||
{
|
||||
public class BlockActionPiston : BlockAction
|
||||
{
|
||||
public bool Running { get; private set; } = false;
|
||||
|
||||
private IMyPistonBase _piston;
|
||||
private float _position;
|
||||
private float _velocity;
|
||||
@ -24,7 +22,7 @@ namespace IngameScript
|
||||
_velocity = velocity;
|
||||
}
|
||||
|
||||
public IEnumerator<bool> Run()
|
||||
protected override IEnumerator<bool> onRun()
|
||||
{
|
||||
_piston.MoveToPosition(_position, _velocity);
|
||||
|
||||
|
@ -7,8 +7,6 @@ namespace IngameScript
|
||||
{
|
||||
public class BlockActionRotor : BlockAction
|
||||
{
|
||||
public bool Running { get; private set; } = false;
|
||||
|
||||
private IMyMotorStator _rotor;
|
||||
private float _angle;
|
||||
private float _velocity;
|
||||
@ -27,7 +25,7 @@ namespace IngameScript
|
||||
_direction = direction;
|
||||
}
|
||||
|
||||
public IEnumerator<bool> Run()
|
||||
protected override IEnumerator<bool> onRun()
|
||||
{
|
||||
_rotor.RotorLock = false;
|
||||
_rotor.RotateToAngle(_direction, _angle, _velocity);
|
||||
|
Reference in New Issue
Block a user