mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Ensure correct initial state
This commit is contained in:
parent
22fde8d2a0
commit
5cfc05e12a
@ -62,6 +62,14 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
||||
AddStep("fail state", () => SetContents(() => new TaikoMascotAnimation(TaikoMascotAnimationState.Fail)));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestInitialState()
|
||||
{
|
||||
AddStep("create mascot", () => SetContents(() => new DrawableTaikoMascot()));
|
||||
|
||||
AddAssert("mascot initially idle", () => allMascotsIn(TaikoMascotAnimationState.Idle));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestClearStateTransition()
|
||||
{
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
private readonly Dictionary<TaikoMascotAnimationState, TaikoMascotAnimation> animations;
|
||||
private TaikoMascotAnimation currentAnimation;
|
||||
|
||||
private bool lastObjectHit;
|
||||
private bool lastObjectHit = true;
|
||||
private bool kiaiMode;
|
||||
|
||||
public DrawableTaikoMascot(TaikoMascotAnimationState startingState = TaikoMascotAnimationState.Idle)
|
||||
|
Loading…
Reference in New Issue
Block a user