Refactor and Reorganize Patch Structure and Namespaces

This commit is contained in:
copecone committed 2026-05-28 14:56:16 +09:00
1 parent c235da001c
commit 9514829040
14 files changed
+19 -18

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
using HarmonyLib;
using UnityEngine;
namespace ADOFAIRenderer.Patch.Game
{
[HarmonyPatch(typeof(scrPortalParticles))]
// ReSharper disable once InconsistentNaming
public static class scrPortalParticlesPatch
{
[HarmonyPostfix]
[HarmonyPatch("Start")]
// ReSharper disable once InconsistentNaming
public static void Postfix(scrPortalParticles __instance)
{
if (__instance == null) return;
var particleSystems = __instance.GetComponentsInChildren<ParticleSystem>(true);
foreach (var ps in particleSystems)
{
if (ps == null) continue;
var main = ps.main;
main.useUnscaledTime = false;
}
}
}
}