Add instance reference to Main and update asset bundle loading in PrefabManager

This commit is contained in:
2025-12-14 21:50:28 +01:00
parent 4277098e13
commit 5b84511923
2 changed files with 7 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ namespace KCM
{
public class Main : MonoBehaviour
{
public static Main instance;
public static KCModHelper helper;
public static MenuState menuState = (MenuState)MainMenuMode.State.Uninitialized;
@@ -229,6 +230,8 @@ namespace KCM
private void Preload(KCModHelper helper)
{
instance = this;
helper.Log("Preload start in main");
try
{