private void Awake() { if (StudioAPI.InsideStudio) { return; } Instance = this; CharacterApi.RegisterExtraBehaviour <BecomeTrapController>(GUID); BecomeTrapGui.Initialize(); HarmonyInstance.Create(GUID).PatchAll(typeof(Hooks)); }
private void Awake() { Instance = this; Logger = base.Logger; if (StudioAPI.InsideStudio) { return; } CharacterApi.RegisterExtraBehaviour <BecomeTrapController>(GUID); BecomeTrapGui.Initialize(); Harmony.CreateAndPatchAll(typeof(Hooks)); }