private void GameManager_OnApplicationQuit(On.GameManager.orig_OnApplicationQuit orig, GameManager self) { MainMenuOrQuit?.Invoke(); orig(self); }
private IEnumerator GameManager_ReturnToMainMenu(On.GameManager.orig_ReturnToMainMenu orig, GameManager self, GameManager.ReturnToMainMenuSaveModes saveMode, Action <bool> callback) { MainMenuOrQuit?.Invoke(); return(orig(self, saveMode, callback)); }