CWX-mods/Live/CWX_AlarmChanger/AlarmChanger.cs

27 lines
685 B
C#
Raw Normal View History

using BepInEx;
using UnityEngine;
namespace CWX_AlarmChanger
{
[BepInPlugin("com.cwx.alarmchanger", "cwx-alarmchanger", "1.0.0")]
public class AlarmChanger : BaseUnityPlugin
{
public static GameObject CWX_GameObject;
public static AlarmChangerScript CWX_Component;
public void Awake()
{
CWX_GameObject = new GameObject("CWX_GameObject");
DontDestroyOnLoad(CWX_GameObject);
CWX_Component = CWX_GameObject.AddComponent<AlarmChangerScript>();
DontDestroyOnLoad(CWX_Component);
}
public void Start()
{
new AlarmChangerPatch().Enable();
}
}
}