convert game playing..

This commit is contained in:
2026-09-23 12:53:52 +09:00
parent 37c7942b71
commit 5d11288a6f
136 changed files with 15856 additions and 299 deletions
@@ -174,6 +174,10 @@ namespace BumpCombat.PlayModeTests
submenuLabels.Add("개발용 시작");
}
submenuLabels.Add("기본 모드");
if (showDevelopment)
{
submenuLabels.Add("방어전 테스트");
}
submenuLabels.Add("챌린지 모드(준비 중)");
submenuLabels.Add("하드코어 모드(준비 중)");
submenuLabels.Add("뒤로");
@@ -196,7 +200,7 @@ namespace BumpCombat.PlayModeTests
label.text);
}
int placeholderIndex = showDevelopment ? 2 : 1;
int placeholderIndex = showDevelopment ? 3 : 1;
for (int i = placeholderIndex; i < placeholderIndex + 2; i++)
{
submenu.Find($"Button {i + 1}").GetComponent<Button>().onClick.Invoke();
@@ -212,12 +216,28 @@ namespace BumpCombat.PlayModeTests
EventSystem.current.currentSelectedGameObject
.GetComponentInChildren<Text>().text,
Is.EqualTo("기본 모드"));
if (showDevelopment)
{
yield return PressAndRelease(keyboard, Key.DownArrow);
Assert.That(
EventSystem.current.currentSelectedGameObject
.GetComponentInChildren<Text>().text,
Is.EqualTo("방어전 테스트"));
}
yield return PressAndRelease(keyboard, Key.DownArrow);
Assert.That(
EventSystem.current.currentSelectedGameObject
.GetComponentInChildren<Text>().text,
Is.EqualTo("뒤로"),
"Keyboard navigation skips disabled mode placeholders.");
if (showDevelopment)
{
yield return PressAndRelease(keyboard, Key.UpArrow);
Assert.That(
EventSystem.current.currentSelectedGameObject
.GetComponentInChildren<Text>().text,
Is.EqualTo("방어전 테스트"));
}
yield return PressAndRelease(keyboard, Key.UpArrow);
Assert.That(
EventSystem.current.currentSelectedGameObject