public NickNameHandler(TextResourceRedirector plugin) : base(plugin)
        {
            Instance = this;

            // replacement fires INSIDE the function we need to postfix, so init hooks up front
            InitHooks();
        }
Exemplo n.º 2
0
 public NickNameHandler(TextResourceRedirector plugin) : base(plugin, allowTranslationRegistration: true)
 {
     Instance = this;
     plugin.TranslatorTranslationsLoaded += Plugin_TranslatorTranslationsLoaded;
     InitHooks();
     SceneManager.sceneLoaded   += SceneManager_sceneLoaded;
     SceneManager.sceneUnloaded += SceneManager_sceneUnloaded;
 }