[Update] 휴대폰 조이스틱 연결 및 스크립트 변경
1. 휴대폰에서 실시가능하도록 조이스틱 및 버튼 입력 2. 콜라이더 및 트리거 구조 변경 3. 로테이션 단계이상함 감지 - 수정 예정
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlatformUIHandler : MonoBehaviour
|
||||
{
|
||||
public GameObject joystickUI; // 모바일 조이스틱 오브젝트
|
||||
public GameObject buttonUI; // 가상 버튼 오브젝트
|
||||
|
||||
void Start()
|
||||
{
|
||||
// 아까 Intro에서 저장한 값을 확인
|
||||
bool isMobile = GameSettings.IsMobile;
|
||||
|
||||
// 모바일이면 켜고, 아니면 끔
|
||||
if (joystickUI != null) joystickUI.SetActive(isMobile);
|
||||
if (buttonUI != null) buttonUI.SetActive(isMobile);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user