示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 private static void OnFejdStartupAwakeMonoModHookShowcase(On.FejdStartup.orig_Awake orig, FejdStartup self)
 {
     // calling the original method
     orig(self);
 }