Add instance reference to Main and update asset bundle loading in PrefabManager
This commit is contained in:
@@ -37,7 +37,9 @@ namespace KCM
|
||||
return;
|
||||
}
|
||||
|
||||
assetBundle = helper.LoadAssetBundle(helper.modPath, "serverbrowserpkg");
|
||||
// LoadAssetBundle is a static method, so we call it on the class, not the instance.
|
||||
// We pass the modPath from the helper instance we have.
|
||||
assetBundle = KCModHelper.LoadAssetBundle(helper.modPath, "serverbrowserpkg");
|
||||
|
||||
if (assetBundle == null)
|
||||
{
|
||||
@@ -75,4 +77,4 @@ namespace KCM
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user