From 687135d55f7e64e39e2c4516bbd45a9907b73846 Mon Sep 17 00:00:00 2001 From: Eusth Date: Thu, 15 Dec 2016 23:09:51 +0100 Subject: [PATCH] Make backward compatible. --- IllusionInjector/Bootstrapper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IllusionInjector/Bootstrapper.cs b/IllusionInjector/Bootstrapper.cs index 43219e9..030f307 100644 --- a/IllusionInjector/Bootstrapper.cs +++ b/IllusionInjector/Bootstrapper.cs @@ -10,6 +10,10 @@ namespace IllusionInjector { public event Action Destroyed = delegate {}; + void Start() + { + Destroy(gameObject); + } void OnDestroy() { Destroyed();