Make backward compatible.
This commit is contained in:
parent
9d83342084
commit
687135d55f
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ namespace IllusionInjector
|
|||
{
|
||||
public event Action Destroyed = delegate {};
|
||||
|
||||
void Start()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
void OnDestroy()
|
||||
{
|
||||
Destroyed();
|
||||
|
|
Loading…
Reference in a new issue