using System.Collections; using System.Collections.Generic; using UnityEngine; public class DebugOnDemo : MonoBehaviour { void Start() { StartCoroutine(OpenDebug()); } IEnumerator OpenDebug() { yield return null; ScreenLocate.Main.DebugOnZIMDemo = true; } void Update() { if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.Return)) { Screen.fullScreen = !Screen.fullScreen; } } }