Using the Puck API




<ItemGroup> <Libs Include="libs\*.dll" Exclude="libs\System.*.dll" /> <Reference Include="@(Libs)"> <HintPath>%(Libs.FullPath)</HintPath> <Private>false</Private> </Reference> </ItemGroup><Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net4.8</TargetFramework> </PropertyGroup> <ItemGroup> <Libs Include="libs\*.dll" Exclude="libs\System.*.dll" /> <Reference Include="@(Libs)"> <HintPath>%(Libs.FullPath)</HintPath> <Private>false</Private> </Reference> </ItemGroup> </Project>using UnityEngine; namespace MyPuckMod { public class Class1 : IPuckMod { public bool OnEnable() { Debug.Log("Hello world from MyPuckMod!"); return true; } public bool OnDisable() { return true; } } }
Last updated