using System; using UnityEngine; public class ZeroSleepThreshold : MonoBehaviour { private void Awake() { var component = GetComponent(); if (component != null) component.sleepThreshold = 0f; } }