void Awake() { instance = this; GameObject.DontDestroyOnLoad(this); InputLibLoader.openlib(); HarmonyInstance harmony = HarmonyInstance.Create("AdvancedInput"); harmony.PatchAll(Assembly.GetExecutingAssembly()); }
void OnDestroy() { instance = null; InputLibLoader.closelib(); }