示例#1
0
        internal void Awake()
        {
            Logger = Logger ?? base.Logger;
            _textResourceHelper          = GetTextResourceHelper();
            _excelRedirector             = new ExcelDataResourceRedirector();
            _scenarioRedirector          = new ScenarioDataResourceRedirector(_textResourceHelper);
            _textAssetHelper             = GetTextAssetHelper();
            _textAssetResourceRedirector = new TextAssetResourceRedirector(_textAssetHelper);

            enabled = false;
        }
 public TextAssetResourceRedirector(TextAssetHelper textAssetHelper)
 {
     CheckDirectory       = true;
     this.textAssetHelper = textAssetHelper;
     if (Enabled)
     {
         Logger.Log(BepinLogLevel.Info, $"{this.GetType()} enabled");
         SceneManager.sceneLoaded += this.SceneManager_sceneLoaded;
         TextAssetPatcher.PatchTextAsset();
     }
     else
     {
         Logger.Log(BepinLogLevel.Warning, $"{this.GetType()} disabled");
     }
 }
 public TextAssetResourceRedirector(TextAssetHelper textAssetHelper)
 {
 }