-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathPlugin.cs
23 lines (21 loc) · 817 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
using BepInEx;
using System;
using UnityEngine;
namespace iiMenu
{
[System.ComponentModel.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("ii");
Loading.AddComponent<iiMenu.UI.Main>();
Loading.AddComponent<iiMenu.Notifications.NotifiLib>();
Loading.AddComponent<iiMenu.Classes.CoroutineManager>();
UnityEngine.Object.DontDestroyOnLoad(Loading);
}
}
}