Skip to content

Commit

Permalink
W
Browse files Browse the repository at this point in the history
  • Loading branch information
dedouwe26 committed Jul 1, 2023
1 parent 1e244c5 commit e29e325
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 222 deletions.
23 changes: 3 additions & 20 deletions Cosmetx.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.Threading;
using System.Reflection;
using System.Reflection;
using BepInEx;
using UnityEngine;
using GorillaNetworking;
using HarmonyLib;
using UnityEngine.SceneManagement;

namespace Cosmetx
{
Expand Down Expand Up @@ -40,45 +36,32 @@ internal static void RemoveHarmonyPatches()
}

/// <summary>
/// mods main class
/// mod's main class
/// </summary>

[BepInPlugin("com.dedouwe26.gorillatag.cosmetx", "Cosmetx", "1.0.0")]
public class Cosmetx : BaseUnityPlugin
{
public static CosmeticsController cosmeticsControllerInstance;
public static bool isUnlocked = false;

void Awake()
{
BepInEx.Logging.Logger.Sources.Remove(Logger);
Logging.init();
}
void Start()
{
// NOT HERE
}

void OnEnable()
{
Logging.log.LogInfo("Plugin is enabled");
Logging.log.LogMessage("Patching Now...");
HarmonyPatches.ApplyHarmonyPatches();
// SceneManager.sceneLoaded += OnSceneLoaded;
}

void OnDisable()
{
// SceneManager.sceneLoaded -= OnSceneLoaded;
HarmonyPatches.RemoveHarmonyPatches();
cosmeticsControllerInstance.GetUserCosmeticsAllowed();
CosmeticsController.instance.GetUserCosmeticsAllowed();
}

// void OnSceneLoaded(Scene s, LoadSceneMode sm)
// {
// if (s.name == "GorillaTagSJR")
// {
// }
// }
}
}
188 changes: 0 additions & 188 deletions CosmetxController.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project>
<PropertyGroup>
<GamePath>G:\Steamgames\steamapps\common\Gorilla Tag</GamePath>
<GamePath>D:\steam\steamapps\common\Gorilla Tag</GamePath>
<GameAssemblyPath>$(GamePath)\Gorilla Tag_Data\Managed</GameAssemblyPath>
<BepInExAssemblyPath>$(GamePath)\BepInEx\core</BepInExAssemblyPath>
<PluginsPath>$(GamePath)\BepInEx\plugins</PluginsPath>
Expand Down
Loading

0 comments on commit e29e325

Please sign in to comment.