Пример #1
0
        void Awake()
        {
            instance = this;
            GameObject.DontDestroyOnLoad(this);
            InputLibLoader.openlib();

            HarmonyInstance harmony = HarmonyInstance.Create("AdvancedInput");

            harmony.PatchAll(Assembly.GetExecutingAssembly());
        }
Пример #2
0
 void OnDestroy()
 {
     instance = null;
     InputLibLoader.closelib();
 }