This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| [InitializeOnLoad] | |
| public static class ResetLightingDataAsset { | |
| static ResetLightingDataAsset() { | |
| EditorSceneManager.sceneOpened += OnSceneOpened; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // | |
| // _____ _ _____ | |
| // |_ _|_|___ _ _ |_ _|_ _ _ ___ ___ ___ | |
| // | | | | | | | | | | | | | -_| -_| | | |
| // |_| |_|_|_|_ | |_| |_____|___|___|_|_| | |
| // |___| | |
| // A Complete and Easy to use Tweens library in One File | |
| // | |
| // Basic use: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Patches { | |
| [HarmonyPatch(typeof(Minimap))] | |
| public class MinimapPatch { | |
| [HarmonyPostfix] | |
| [HarmonyPatch(nameof(Minimap.Awake))] | |
| static void AwakePostfix() { | |
| _waterLevel = ZoneSystem.m_instance.m_waterLevel; | |
| } | |
| [HarmonyPrefix] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [HarmonyTranspiler] | |
| [HarmonyPatch(nameof(GameCamera.ScreenShot))] | |
| static IEnumerable<CodeInstruction> ScreenShotTranspiler(IEnumerable<CodeInstruction> instructions) { | |
| return new CodeMatcher(instructions) | |
| .MatchForward( | |
| useEnd: false, | |
| new CodeMatch( | |
| OpCodes.Call, | |
| AccessTools.Method( | |
| typeof(ScreenCapture), nameof(ScreenCapture.CaptureScreenshot), new Type[] { typeof(string) }))) |