asd gatya
This commit is contained in:
31
Main.cs
31
Main.cs
@@ -35,6 +35,37 @@ namespace KCM
|
||||
|
||||
public static string PlayerSteamID => SteamUser.GetSteamID().ToString();
|
||||
|
||||
// K&C mod loader entrypoint
|
||||
public void Preload(KCModHelper modHelper)
|
||||
{
|
||||
helper = modHelper;
|
||||
|
||||
try
|
||||
{
|
||||
EnsureNetworking();
|
||||
|
||||
if (harmony == null)
|
||||
harmony = HarmonyInstance.Create("com.kcm.mod");
|
||||
|
||||
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
||||
|
||||
try
|
||||
{
|
||||
new PrefabManager().PreScriptLoad(modHelper);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log("Prefab preload failed");
|
||||
Log(ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log("Preload failed");
|
||||
Log(ex);
|
||||
}
|
||||
}
|
||||
|
||||
void Awake()
|
||||
{
|
||||
Log("KCM Awake");
|
||||
|
||||
Reference in New Issue
Block a user