Don't call Reset() from within TestCaseTaikoHitObjects.

This commit is contained in:
Dean Herbert 2017-04-01 16:12:27 +09:00
parent 782c6bf28e
commit d1e3bbb5f4
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using OpenTK; using OpenTK;
using OpenTK.Graphics; using OpenTK.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
@ -22,7 +23,7 @@ public override void Reset()
AddToggleStep("Kiai", b => AddToggleStep("Kiai", b =>
{ {
kiai = !kiai; kiai = !kiai;
Reset(); updateKiaiState();
}); });
Add(new CirclePiece Add(new CirclePiece
@ -102,6 +103,12 @@ public override void Reset()
}); });
} }
private void updateKiaiState()
{
foreach (var c in Children.OfType<CirclePiece>())
c.KiaiMode = kiai;
}
private abstract class BaseCircle : Container private abstract class BaseCircle : Container
{ {
protected readonly CirclePiece Piece; protected readonly CirclePiece Piece;