test(TestSceneOsuTouchInput): fix `InputTrigger` depth

This commit is contained in:
tsrk 2023-06-18 18:26:08 +02:00
parent c8afd057bd
commit cf1ee2ba35
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6
1 changed files with 7 additions and 3 deletions

View File

@ -66,8 +66,14 @@ public void SetUpSteps()
{
Depth = float.MinValue,
},
triggerLeft = new TestActionKeyCounterTrigger(OsuAction.LeftButton),
triggerLeft = new TestActionKeyCounterTrigger(OsuAction.LeftButton)
{
Depth = float.MinValue
},
triggerRight = new TestActionKeyCounterTrigger(OsuAction.RightButton)
{
Depth = float.MinValue
}
},
},
},
@ -80,14 +86,12 @@ public void SetUpSteps()
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreRight,
Depth = float.MinValue,
X = -100,
},
rightKeyCounter = new DefaultKeyCounter(triggerRight)
{
Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft,
Depth = float.MinValue,
X = 100,
},
});