Cardlife mod patcher
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
594B

  1. using System;
  2. using System.IO;
  3. using UnityEngine;
  4. namespace IllusionInjector
  5. {
  6. public static class Injector
  7. {
  8. private static bool injected = false;
  9. public static void Inject()
  10. {
  11. if (!injected)
  12. {
  13. injected = true;
  14. var bootstrapper = new GameObject("Bootstrapper").AddComponent<Bootstrapper>();
  15. bootstrapper.Destroyed += Bootstrapper_Destroyed;
  16. }
  17. }
  18. private static void Bootstrapper_Destroyed()
  19. {
  20. PluginComponent.Create();
  21. }
  22. }
  23. }