Initial commit
This commit is contained in:
22
Plugin.cs
Normal file
22
Plugin.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user