Make RandomSeed a property, not a bindable

This commit is contained in:
ekrctb
2020-12-02 20:53:47 +09:00
parent 5936a8ffb4
commit fdcfa81e46
6 changed files with 27 additions and 41 deletions

View File

@ -36,11 +36,13 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
VisualRepresentation.BindValueChanged(_ => updatePiece());
HyperDash.BindValueChanged(_ => updatePiece(), true);
}
RandomSeed.BindValueChanged(_ =>
{
ScaleContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
}, true);
protected override void UpdateInitialTransforms()
{
base.UpdateInitialTransforms();
ScaleContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
}
private void updatePiece()