mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 07:07:45 +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)));
|
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]
|
[Test]
|
||||||
public void TestClearStateTransition()
|
public void TestClearStateTransition()
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
private readonly Dictionary<TaikoMascotAnimationState, TaikoMascotAnimation> animations;
|
private readonly Dictionary<TaikoMascotAnimationState, TaikoMascotAnimation> animations;
|
||||||
private TaikoMascotAnimation currentAnimation;
|
private TaikoMascotAnimation currentAnimation;
|
||||||
|
|
||||||
private bool lastObjectHit;
|
private bool lastObjectHit = true;
|
||||||
private bool kiaiMode;
|
private bool kiaiMode;
|
||||||
|
|
||||||
public DrawableTaikoMascot(TaikoMascotAnimationState startingState = TaikoMascotAnimationState.Idle)
|
public DrawableTaikoMascot(TaikoMascotAnimationState startingState = TaikoMascotAnimationState.Idle)
|
||||||
|
Loading…
Reference in New Issue
Block a user