DebugOnDemo.cs 587 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DebugOnDemo : MonoBehaviour
  5. {
  6. void Start()
  7. {
  8. StartCoroutine(OpenDebug());
  9. }
  10. IEnumerator OpenDebug()
  11. {
  12. yield return null;
  13. ScreenLocate.Main.DebugOnZIMDemo = true;
  14. ScreenLocate.Main.SaveToggle.isOn = true;
  15. }
  16. void Update()
  17. {
  18. if ((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.Return))
  19. {
  20. Screen.fullScreen = !Screen.fullScreen;
  21. }
  22. }
  23. }