public class Template : MonoBehaviour
{
void Start()
{
Caputilla.CaputillaManager.Instance.OnModdedJoin += OnJoinedModded;
Caputilla.CaputillaManager.Instance.OnModdedLeave += OnLeaveModded;
}
void OnJoinedModded()
{
//Activate Mod Here
}
void OnLeaveModded()
{
//Deactivate Mod Here
}
}and put make sure in the Load() part of the plugin class add AddCompenent<Template>();