Cardlife mod patcher
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
604B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using UnityEngine;
  6. namespace IllusionInjector
  7. {
  8. class Bootstrapper : MonoBehaviour
  9. {
  10. public event Action Destroyed = delegate {};
  11. void Awake()
  12. {
  13. if (Environment.CommandLine.Contains("--verbose") && !Screen.fullScreen)
  14. {
  15. Windows.GuiConsole.CreateConsole();
  16. }
  17. }
  18. void Start()
  19. {
  20. Destroy(gameObject);
  21. }
  22. void OnDestroy()
  23. {
  24. Destroyed();
  25. }
  26. }
  27. }