using UnityEngine; using UnityEngine.InputSystem; public class OnScreenControls : MonoBehaviour { public Canvas controlsCanvas; void Awake() { bool isMobile = SystemInfo.deviceType == DeviceType.Handheld; if (controlsCanvas != null) controlsCanvas.gameObject.SetActive(isMobile); if (isMobile) Application.targetFrameRate = 60; } }