[Update] 휴대폰 조이스틱 연결 및 스크립트 변경

1. 휴대폰에서 실시가능하도록 조이스틱 및 버튼 입력
2. 콜라이더 및 트리거 구조 변경
3. 로테이션 단계이상함 감지 - 수정 예정
This commit is contained in:
jongjae0305
2026-04-21 17:45:51 +09:00
parent 15bb71750b
commit 6c84f865d8
209 changed files with 8639 additions and 2654 deletions
+23
View File
@@ -0,0 +1,23 @@
using UnityEngine;
using TMPro;
public class RestartTextHandler : MonoBehaviour
{
// [SerializeField]를 쓰면 private이어도 인스펙터 창에 뜹니다!
[SerializeField] private TextMeshProUGUI restartText;
void OnEnable()
{
// 이제 null 체크를 할 필요도 거의 없습니다. (인스펙터에서 넣을 거니까요)
if (restartText == null)
{
Debug.LogError("인스펙터에 텍스트 오브젝트를 할당해주세요!");
return;
}
if (GameSettings.IsMobile)
restartText.text = "Touch the screen to restart";
else
restartText.text = "Press the R key to restart";
}
}