mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[ThirdPerson] BetterShadowClone support
This commit is contained in:
parent
5ee7dca50b
commit
1de39260f4
6 changed files with 66 additions and 16 deletions
|
@ -11,11 +11,22 @@ public class ThirdPerson : MelonMod
|
|||
public override void OnInitializeMelon()
|
||||
{
|
||||
Logger = LoggerInstance;
|
||||
|
||||
|
||||
Patches.Apply(HarmonyInstance);
|
||||
MelonCoroutines.Start(SetupCamera());
|
||||
|
||||
InitializeIntegration("BetterShadowClone", Integrations.BSCAddon.Initialize);
|
||||
}
|
||||
|
||||
private static void InitializeIntegration(string modName, Action integrationAction)
|
||||
{
|
||||
if (RegisteredMelons.All(it => it.Info.Name != modName))
|
||||
return;
|
||||
|
||||
Logger.Msg($"Initializing {modName} integration.");
|
||||
integrationAction.Invoke();
|
||||
}
|
||||
|
||||
public override void OnUpdate()
|
||||
{
|
||||
// Prevents scrolling while using Effector/BetterInteractDesktop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue