Example #1
0
 internal static void Init()
 {
     if (!Instance)
     {
         Instance = new GameObject().AddComponent <Spooper>();
     }
     BS_Utils.Gameplay.ScoreSubmission.DisableSubmission("SpoopyBloqs");
 }
Example #2
0
 public void OnActiveSceneChanged(Scene prevScene, Scene nextScene)
 {
     if (nextScene.name == "GameCore" && IsEnabled)
     {
         harmony.PatchAll(Assembly.GetExecutingAssembly());
         Spooper.Init();
     }
     else
     {
         if (harmony.HasAnyPatches("com.steven.happy.halloween"))
         {
             harmony.UnpatchAll("com.steven.happy.halloween");
         }
     }
 }