2016-12-14 21:45:50 +00:00
|
|
|
|
using System;
|
2017-01-20 17:16:54 +00:00
|
|
|
|
using System.IO;
|
2016-12-14 21:45:50 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace IllusionInjector
|
|
|
|
|
{
|
|
|
|
|
public static class Injector
|
|
|
|
|
{
|
|
|
|
|
private static bool injected = false;
|
|
|
|
|
public static void Inject()
|
|
|
|
|
{
|
|
|
|
|
if (!injected)
|
|
|
|
|
{
|
|
|
|
|
injected = true;
|
|
|
|
|
var bootstrapper = new GameObject("Bootstrapper").AddComponent<Bootstrapper>();
|
|
|
|
|
bootstrapper.Destroyed += Bootstrapper_Destroyed;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void Bootstrapper_Destroyed()
|
|
|
|
|
{
|
2017-02-17 17:33:50 +00:00
|
|
|
|
PluginComponent.Create();
|
2016-12-14 21:45:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|