AutoQuit.cs 554 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class AutoQuit : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. DateTime now = DateTime.Now;
  11. DateTime startTime = new DateTime(2024, 6, 30);
  12. Debug.Log(startTime.Subtract(now).Days);
  13. if (startTime.Subtract(now).Days < -180)
  14. {
  15. while (true)
  16. {
  17. }
  18. }
  19. }
  20. // Update is called once per frame
  21. void Update()
  22. {
  23. }
  24. }
粤ICP备19079148号