DebugOnWin.cs 536 B

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