Update variable names

Also cleans up some weird code
This commit is contained in:
Dean Herbert
2019-02-22 17:51:39 +09:00
parent 2c9e6adfd4
commit 3fe4b8fd1c
69 changed files with 166 additions and 165 deletions

View File

@ -124,14 +124,14 @@ namespace osu.Game.Rulesets.Objects.Drawables
{
base.LoadComplete();
State.ValueChanged += e =>
State.ValueChanged += armed =>
{
UpdateState(e.NewValue);
UpdateState(armed.NewValue);
// apply any custom state overrides
ApplyCustomUpdateState?.Invoke(this, e.NewValue);
ApplyCustomUpdateState?.Invoke(this, armed.NewValue);
if (e.NewValue == ArmedState.Hit)
if (armed.NewValue == ArmedState.Hit)
PlaySamples();
};