-
Notifications
You must be signed in to change notification settings - Fork 63
/
Plugin.cs
24 lines (22 loc) · 820 Bytes
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using BepInEx;
using System;
using System.ComponentModel;
using UnityEngine;
namespace iiMenu
{
[Description(PluginInfo.Description)]
[BepInPlugin(PluginInfo.GUID, PluginInfo.Name, PluginInfo.Version)]
public class Plugin : BaseUnityPlugin
{
private void Start() // To that one dude that uses SMI to inject my menu, it's this method
{
Console.Title = "ii's Stupid Menu // Build " + PluginInfo.Version;
iiMenu.Patches.Menu.ApplyHarmonyPatches();
GameObject Loading = new GameObject();
Loading.AddComponent<iiMenu.UI.Main>();
Loading.AddComponent<iiMenu.Notifications.NotifiLib>();
Loading.AddComponent<iiMenu.Classes.CoroutineManager>();
UnityEngine.Object.DontDestroyOnLoad(Loading);
}
}
}