기존 Stage의 UI에도 Progress Submit 기반 UI를 적용했습니다.
특별히 추가로 만든 스크립트는 딱히 없습니다.
영상에서 버튼이 여러개 나오는 경우 인디케이터가 오뚝이처럼 입력이 없을 시 항상 중심부로 이동하도록 하기 위해
Selectable의 Navigation을 사용하지 않고 InputAction의 phase Performed와 Canceled에 이벤트를 부착했습니다.
model.uiInputActionManager.SubscribePerformedEvent(model.quitButtonInputType, OnQuitButtonEnter);
model.uiInputActionManager.SubscribeCanceledEvent(model.quitButtonInputType, OnQuitButtonExit);
//InputAction의 Performed(입력)에 Enter, Canceled(입력 해제)에 Exit 이벤트를 부착
//model.uiInputActionManager이 뭔지는 생략
private void OnQuitButtonEnter()
{
if (IsState(ButtonState.Restart) == false)
return;
SetState(ButtonState.Quit);
}
private void OnQuitButtonExit()
{
if (IsState(ButtonState.Quit) == false)
return;
SetState(ButtonState.Restart);
}
//Enter 혹은 Exit마다 직접 현재 선택중인 버튼이 즉시즉시 바뀌도록 스크립트를 통해 선택
https://github.com/ClapJeong/LRGame
GitHub - ClapJeong/LRGame: A game requires left and right
A game requires left and right. Contribute to ClapJeong/LRGame development by creating an account on GitHub.
github.com
이 역시 깃 프로젝트에서 확인 가능합니다.

더 할것:
Indicator에 UI 조작법 바로바로 표시해주는 기능 추가하기
기획 생각 좀 더 해보기
'무제_LR' 카테고리의 다른 글
| 스테이지 별 카메라 설정 (0) | 2025.12.08 |
|---|---|
| Indicator 보강 (0) | 2025.12.07 |
| 마우스 없이 키보드로만 조작하는 Progress 기반 UI 제작 (0) | 2025.12.03 |
| UI Indicator 만들기 만들기(Selctable, Navigation) (0) | 2025.11.26 |
| 피격 후 무적 시간 적용 (0) | 2025.11.22 |