Target.cs 836 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using ChaCustom;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace BepInEx
  7. {
  8. public class Target
  9. {
  10. static bool loaded = false;
  11. public static void Initialize()
  12. {
  13. if (loaded)
  14. return;
  15. UnityEngine.Debug.logger.Log("inject: Loaded!!!");
  16. loaded = true;
  17. }
  18. public static void InitializeCustomBase() //CustomBase customBase
  19. {
  20. UnityEngine.Debug.logger.Log("inject: CustomBase loaded!!!");
  21. CustomBase customBase = Singleton<CustomBase>.Instance;
  22. foreach (var entry in customBase.lstSelectList)
  23. {
  24. UnityEngine.Debug.Log(entry.list[2]);
  25. entry.list[2] = "TL TEST TL TEST";
  26. }
  27. }
  28. }
  29. }