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.

Bootstrapper.cs 604B

8 years ago
8 years ago
8 years ago
123456789101112131415161718192021222324252627282930
  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. }