2016-12-14 21:45:50 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace IllusionInjector
|
|
|
|
|
{
|
|
|
|
|
class Bootstrapper : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public event Action Destroyed = delegate {};
|
2017-01-20 17:16:54 +00:00
|
|
|
|
|
|
|
|
|
void Awake()
|
|
|
|
|
{
|
|
|
|
|
if (Environment.CommandLine.Contains("--verbose") && !Screen.fullScreen)
|
|
|
|
|
{
|
|
|
|
|
Windows.GuiConsole.CreateConsole();
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-14 21:45:50 +00:00
|
|
|
|
|
2016-12-15 22:09:51 +00:00
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
Destroy(gameObject);
|
|
|
|
|
}
|
2016-12-14 21:45:50 +00:00
|
|
|
|
void OnDestroy()
|
|
|
|
|
{
|
|
|
|
|
Destroyed();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|