mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Load both bundles in main
This commit is contained in:
parent
9f8fecacb5
commit
f939c224a5
@ -12,7 +12,6 @@ namespace NewHorizons.Handlers
|
||||
{
|
||||
public static class VesselWarpHandler
|
||||
{
|
||||
public static AssetBundle VesselBundle { get; private set; }
|
||||
public static GameObject VesselPrefab { get; private set; }
|
||||
public static GameObject VesselObject { get; private set; }
|
||||
public static VesselWarpController WarpController { get; private set; }
|
||||
@ -22,8 +21,7 @@ namespace NewHorizons.Handlers
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
VesselBundle = Instance.ModHelper.Assets.LoadBundle("Assets/newhorizons_private");
|
||||
VesselPrefab = VesselBundle.LoadAsset<GameObject>("Vessel_Body");
|
||||
VesselPrefab = Main.NHPrivateAssetBundle.LoadAsset<GameObject>("Vessel_Body");
|
||||
}
|
||||
|
||||
public static void LoadVessel()
|
||||
|
||||
@ -37,6 +37,7 @@ namespace NewHorizons
|
||||
public class Main : ModBehaviour
|
||||
{
|
||||
public static AssetBundle NHAssetBundle { get; private set; }
|
||||
public static AssetBundle NHPrivateAssetBundle { get; private set; }
|
||||
public static Main Instance { get; private set; }
|
||||
|
||||
// Settings
|
||||
@ -196,6 +197,7 @@ namespace NewHorizons
|
||||
|
||||
GlobalMessenger.AddListener("WakeUp", OnWakeUp);
|
||||
NHAssetBundle = ModHelper.Assets.LoadBundle("Assets/newhorizons_public");
|
||||
NHPrivateAssetBundle = ModHelper.Assets.LoadBundle("Assets/newhorizons_private");
|
||||
VesselWarpHandler.Initialize();
|
||||
|
||||
ResetConfigs(resetTranslation: false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user