mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Apply review feedback to touch test scene
This commit is contained in:
parent
3b95691d53
commit
f387a6af57
@ -297,7 +297,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
|
||||
public partial class TouchVisualiser : CompositeDrawable
|
||||
{
|
||||
private readonly Drawable?[] drawableTouches = new Drawable?[10];
|
||||
private readonly Drawable?[] drawableTouches = new Drawable?[TouchState.MAX_TOUCH_COUNT];
|
||||
|
||||
public TouchVisualiser()
|
||||
{
|
||||
@ -341,6 +341,9 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
protected override void OnTouchUp(TouchUpEvent e)
|
||||
{
|
||||
var circle = drawableTouches[(int)e.Touch.Source];
|
||||
|
||||
Debug.Assert(circle != null);
|
||||
|
||||
circle.FadeOut(200, Easing.OutQuint).Expire();
|
||||
drawableTouches[(int)e.Touch.Source] = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user