mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Move Shake to DrawableOsuHitObject, Clean up Shake()
This commit is contained in:
@ -58,6 +58,18 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
private OsuInputManager osuActionInputManager;
|
||||
internal OsuInputManager OsuActionInputManager => osuActionInputManager ?? (osuActionInputManager = GetContainingInputManager() as OsuInputManager);
|
||||
|
||||
public void Shake()
|
||||
{
|
||||
const int shake_amount = 8;
|
||||
|
||||
this.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X - shake_amount, 20).Then()
|
||||
.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X - shake_amount, 20).Then()
|
||||
.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X, 20);
|
||||
}
|
||||
}
|
||||
|
||||
public enum ComboResult
|
||||
|
Reference in New Issue
Block a user