2026-04-21 17:45:51 +09:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class PlatformUIHandler : MonoBehaviour
|
|
|
|
|
{
|
2026-04-29 09:22:08 +09:00
|
|
|
public GameObject joystickUI;
|
|
|
|
|
public GameObject buttonUI;
|
|
|
|
|
public GameObject shootButtonUI;
|
2026-04-21 17:45:51 +09:00
|
|
|
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
bool isMobile = GameSettings.IsMobile;
|
|
|
|
|
|
|
|
|
|
if (joystickUI != null) joystickUI.SetActive(isMobile);
|
|
|
|
|
if (buttonUI != null) buttonUI.SetActive(isMobile);
|
2026-04-29 09:22:08 +09:00
|
|
|
if (shootButtonUI != null) shootButtonUI.SetActive(isMobile);
|
2026-04-21 17:45:51 +09:00
|
|
|
}
|
|
|
|
|
}
|