Sfoglia il codice sorgente

Add spawning "BG" props

Neglected to add "BG/" props. Not sure if it actually changed anything
but it's another fall back if "Prefab/" does not work.
habeebweeb 4 anni fa
parent
commit
c8bea48e9a

+ 2 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Managers/PropManager.cs

@@ -286,7 +286,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
             else
             {
                 GameObject obj = GameMain.Instance.BgMgr.CreateAssetBundle(assetName)
-                    ?? Resources.Load<GameObject>("Prefab/" + assetName);
+                    ?? Resources.Load<GameObject>("Prefab/" + assetName)
+                    ?? Resources.Load<GameObject>("BG/" + assetName);
                 try
                 {
                     dogu = GameObject.Instantiate<GameObject>(obj);