private static void OnFejdStartupAwakeMonoModHookShowcase(On.FejdStartup.orig_Awake orig, FejdStartup self) { // calling the original method orig(self); Log.LogInfo("Hello from a monomod hook, this method is fired after the original method is called : " + self.m_betaText); }
private static void OnFejdStartupAwakeMonoModHookShowcase(On.FejdStartup.orig_Awake orig, FejdStartup self) { CoroutineExtensions.DelayedMethod(2, () => { Log.LogInfo("Hello from a monomod hook, this method is fired after a 2 seconds delay !"); }); // calling the original method orig(self); Log.LogInfo("Hello from a monomod hook, this method is fired after the original method is called : " + self.m_betaText); }
private static void OnFejdStartupAwakeMonoModHookShowcase(On.FejdStartup.orig_Awake orig, FejdStartup self) { // calling the original method orig(self); }