22 lines
616 B
C#
22 lines
616 B
C#
using BepInEx;
|
|
using BepInEx.Unity.Mono;
|
|
using PhotonLogger.Core;
|
|
|
|
namespace PhotonLogger;
|
|
|
|
[BepInPlugin("dev.proxnet.photon.logger", "PhotonLogger", "0.1.0")]
|
|
#pragma warning disable BepInEx002 // Classes with BepInPlugin attribute must inherit from BaseUnityPlugin
|
|
public class MonoPlugin : BaseUnityPlugin
|
|
#pragma warning restore BepInEx002 // Classes with BepInPlugin attribute must inherit from BaseUnityPlugin
|
|
{
|
|
public void Awake()
|
|
{
|
|
LoggerPlugin.Log.LogInfo($"Plugin Initialized");
|
|
LoggerPlugin.Load();
|
|
}
|
|
|
|
public void OnDestroy()
|
|
{
|
|
LoggerPlugin.Unload();
|
|
}
|
|
} |