Browse Source

修复bug

“hujiajun” 1 year ago
parent
commit
ef7f2bf39c

+ 21 - 13
Assets/HotUpdate/GameManager.cs

@@ -765,21 +765,29 @@ public class GameManager : MonoSingleton<GameManager>
         m_SettingPanel.gameObject.SetActive(true);
         m_EditorPanel.Init();
         m_SettingPanel.Init();
-        if (RouteCtr.List_route[0]&&RouteCtr.List_route[0].GetComponent<LineRenderer>()&& RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount > 0)
+        yield return new WaitForSeconds(0.5f);
+        try
+        {
+            if (RouteCtr && RouteCtr.List_route != null && RouteCtr.List_route[0] && RouteCtr.List_route[0].GetComponent<LineRenderer>() && RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount > 0)
+            {
+                Vector3[] v3list = new Vector3[RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount];
+                RouteCtr.List_route[0].GetComponent<LineRenderer>().GetPositions(v3list);
+                Player.MovePoints = v3list.ToList();// RouteCtr.CurrentPoints;
+                                                    //判断选择那个虚拟导游
+                                                    //int id = ChooseIroBot();
+
+                //if (id < 3)
+                //{
+                //m_IroBot = Irobots[id - 1];
+                m_IroBot.gameObject.SetActive(true);
+                m_IroBot.Points = Player.MovePoints;
+                //}
+            }
+
+        }
+        catch
         {
-            yield return new WaitForSeconds(5f);
-            Vector3[] v3list = new Vector3[RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount];
-            RouteCtr.List_route[0].GetComponent<LineRenderer>().GetPositions(v3list);
-            Player.MovePoints = v3list.ToList();// RouteCtr.CurrentPoints;
-            //判断选择那个虚拟导游
-            //int id = ChooseIroBot();
 
-            //if (id < 3)
-            //{
-            //m_IroBot = Irobots[id - 1];
-            m_IroBot.gameObject.SetActive(true);
-            m_IroBot.Points = Player.MovePoints;
-            //}
         }
         IsRuning = true;
         m_SetBtn.gameObject.SetActive(true);

+ 1 - 1
Assets/HotUpdate/TemplateModel.cs

@@ -434,7 +434,7 @@ public class TemplateModel : BaseTemPlate
 
         Debug.Log("模型加载完成TriLibModel" + Data.localLoadPath);
 
-        if (ExtractZipFile(Data.localLoadPath))//ExtractZipFile(Data.localLoadPath)
+        if (false)//ExtractZipFile(Data.localLoadPath)
         {
 
         }

+ 3 - 3
ProjectSettings/ProjectSettings.asset

@@ -938,7 +938,6 @@ PlayerSettings:
   metroSplashScreenUseBackgroundColor: 1
   platformCapabilities:
     WindowsStoreApps:
-      CodeGeneration: False
       OfflineMapsManagement: False
       HumanInterfaceDevice: False
       Location: False
@@ -950,6 +949,7 @@ PlayerSettings:
       PrivateNetworkClientServer: False
       InternetClientServer: False
       VideosLibrary: False
+      BackgroundMediaPlayback: False
       Objects3D: False
       RemoteSystem: False
       BlockedChatMessages: False
@@ -971,9 +971,9 @@ PlayerSettings:
       PointOfService: False
       RecordedCallsFolder: False
       Contacts: False
-      Proximity: False
       InternetClient: True
-      BackgroundMediaPlayback: False
+      Proximity: False
+      CodeGeneration: False
       EnterpriseAuthentication: False
   metroTargetDeviceFamilies: {}
   metroFTAName: