DisplayNever.cs 222 B

1234567891011
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DisplayNever : MonoBehaviour
  5. {
  6. private void Awake()
  7. {
  8. Screen.sleepTimeout = SleepTimeout.NeverSleep;
  9. }
  10. }