Update transforms to not accept clock.

This commit is contained in:
Dean Herbert
2016-10-28 17:42:00 +09:00
parent 0e39c5cc9c
commit 13b5fb0578
10 changed files with 34 additions and 56 deletions

View File

@ -56,11 +56,11 @@ namespace osu.Game.Graphics.UserInterface
protected class TransformScore : Transform<ulong>
{
public override ulong CurrentValue
protected override ulong CurrentValue
{
get
{
double time = Time;
double time = CurrentTime ?? 0;
if (time < StartTime) return StartValue;
if (time >= EndTime) return EndValue;
@ -73,11 +73,6 @@ namespace osu.Game.Graphics.UserInterface
base.Apply(d);
(d as ScoreCounter).DisplayedCount = CurrentValue;
}
public TransformScore(IClock clock)
: base(clock)
{
}
}
}
}