Exemplo n.º 1
0
 internal static void Init()
 {
     if (!Instance)
     {
         Instance = new GameObject().AddComponent <Spooper>();
     }
     BS_Utils.Gameplay.ScoreSubmission.DisableSubmission("SpoopyBloqs");
 }
Exemplo n.º 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");
         }
     }
 }