-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMain.cs
More file actions
31 lines (28 loc) · 966 Bytes
/
Main.cs
File metadata and controls
31 lines (28 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MelonLoader;
using UnityEngine;
using Harmony;
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.4.2", "Micrologist#2351")]
[assembly: MelonGame("PillowCastle", "Superliminal")]
[assembly: MelonGame("PillowCastle", "SuperliminalSteam")]
[assembly: MelonGame("PillowCastle", "SuperliminalGOG")]
namespace SuperliminalPracticeMod
{
public class Main : MelonMod
{
public override void OnApplicationStart()
{
MelonLogger.Log("Trying to patch");
SLPMod_Patcher.Patch();
}
public override void OnLevelWasLoaded(int level)
{
if(GameManager.GM != null && GameManager.GM.gameObject.GetComponent<PracticeModManager>() == null)
GameManager.GM.gameObject.AddComponent<PracticeModManager>();
}
}
}