|
|
@@ -147,22 +147,4 @@ namespace GamecraftModdingAPI.Interface.IMGUI |
|
|
|
_defaultCompletion++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[HarmonyPatch(typeof(FMODUnity.RuntimeManager), "PlayOneShot", new []{ typeof(Guid), typeof(Vector3)})] |
|
|
|
public class FMODRuntimeManagerPlayOneShotPatch |
|
|
|
{ |
|
|
|
public static void Prefix(Guid guid) |
|
|
|
{ |
|
|
|
Logging.MetaLog($"Playing sound with guid '{guid.ToString()}'"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[HarmonyPatch(typeof(FMODUnity.RuntimeManager), "PlayOneShot", new []{ typeof(string), typeof(Vector3)})] |
|
|
|
public class FMODRuntimeManagerPlayOneShotPatch2 |
|
|
|
{ |
|
|
|
public static void Prefix(string path) |
|
|
|
{ |
|
|
|
Logging.MetaLog($"Playing sound with str '{path}'"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |