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); } }