Fix inverted ternary

See #1935 - repeat index 1 is at the end of the slider, not the start.
This commit is contained in:
smoogipoo 2018-01-18 23:44:00 +09:00
parent 46ba2cda10
commit 6908597b95
1 changed files with 1 additions and 1 deletions

View File

@ -72,6 +72,6 @@ protected override void UpdateCurrentState(ArmedState state)
}
}
public void UpdateSnakingPosition(Vector2 start, Vector2 end) => Position = repeatPoint.RepeatIndex % 2 == 1 ? start : end;
public void UpdateSnakingPosition(Vector2 start, Vector2 end) => Position = repeatPoint.RepeatIndex % 2 == 1 ? end : start;
}
}