Files
WildRoot/Assets/Script/PlatformUIHandler.cs
T

17 lines
446 B
C#
Raw Normal View History

using UnityEngine;
public class PlatformUIHandler : MonoBehaviour
{
2026-04-29 09:22:08 +09:00
public GameObject joystickUI;
public GameObject buttonUI;
public GameObject shootButtonUI;
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);
}
}