“hujiajun” 1 year ago
parent
commit
1e0b9dd446
2 changed files with 15 additions and 3 deletions
  1. 12 0
      Assets/HotUpdate/GameInit.cs
  2. 3 3
      ProjectSettings/ProjectSettings.asset

+ 12 - 0
Assets/HotUpdate/GameInit.cs

@@ -183,7 +183,19 @@ public class GameInit : MonoBehaviour
                 yield return null;
             }
             Instantiate(abr.asset);
+            switch (Application.version)
+            {
+                case "2.3.0.1":
+                    AssetBundleRequest ERNIEBot = acr.assetBundle.LoadAssetAsync<GameObject>("ERNIEBot");
+
+                    while (!ERNIEBot.isDone)
+                    {
+                        yield return null;
+                    }
+                    (Instantiate(ERNIEBot.asset) as GameObject).SetActive(true);
 
+                    break;
+            }
             if (isRemote)
             {
                 JsonData data = JsonMapper.ToObject(HttpSDKAction.Instance.jsonData);

+ 3 - 3
ProjectSettings/ProjectSettings.asset

@@ -135,7 +135,7 @@ PlayerSettings:
     16:10: 1
     16:9: 1
     Others: 1
-  bundleVersion: 2.2.0
+  bundleVersion: 2.3.0.4
   preloadedAssets: []
   metroInputSource: 0
   wsaTransparentSwapchain: 0
@@ -938,7 +938,7 @@ PlayerSettings:
   metroSplashScreenUseBackgroundColor: 1
   platformCapabilities:
     WindowsStoreApps:
-      EnterpriseAuthentication: False
+      CodeGeneration: False
       OfflineMapsManagement: False
       HumanInterfaceDevice: False
       Location: False
@@ -973,8 +973,8 @@ PlayerSettings:
       Contacts: False
       Proximity: False
       InternetClient: True
-      CodeGeneration: False
       BackgroundMediaPlayback: False
+      EnterpriseAuthentication: False
   metroTargetDeviceFamilies: {}
   metroFTAName: 
   metroFTAFileTypes: []