Beispiel #1
0
 //Patch GameComponentTick to Call GameComponentUpdate instead, shouldCall true to make it actually run
 private static void GameComponentTickPrefix(GameComponent __instance)
 {
     //Check if it's our component - ImmortalComponent does not override this method
     if (__instance.GetType() == immortalComponent)
     {
         shouldCall = true;
         __instance.GameComponentUpdate();
         shouldCall = false;
     }
 }