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; ScreenLocate.Main.SaveToggle.isOn = true; ScreenLocate.Main.FullScreenToggle.gameObject.SetActive(true); ScreenLocate.Main.FullScreenToggle.onValueChanged.AddListener((i) => { Screen.fullScreen = i; }); Application.targetFrameRate = 60; } void Update() { if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.Return)) { Screen.fullScreen = !Screen.fullScreen; } } }