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.

26 lines
478 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. using System;
  2. using UnityEngine;
  3. // ReSharper disable ClassNeverInstantiated.Global
  4. // ReSharper disable UnusedMember.Global
  5. namespace IPA.Injector
  6. {
  7. internal class Bootstrapper : MonoBehaviour
  8. {
  9. public event Action Destroyed = delegate {};
  10. public void Awake()
  11. {
  12. }
  13. public void Start()
  14. {
  15. Destroy(gameObject);
  16. }
  17. public void OnDestroy()
  18. {
  19. Destroyed();
  20. }
  21. }
  22. }