Browse Source

下载 updateTime 更新

DGJ 1 year ago
parent
commit
4e2f3ec092
2 changed files with 8 additions and 1 deletions
  1. 3 1
      Assets/2.0/Tools/DownLoadItem.cs
  2. 5 0
      Assets/Scripts/UI/GameManager.cs

+ 3 - 1
Assets/2.0/Tools/DownLoadItem.cs

@@ -246,7 +246,9 @@ public class DownLoadItem : MonoBehaviour
         data.localLoadPath = Application.persistentDataPath + "/Material/" + Path.GetFileName(downLoadPath);
         if(type == ModelType.vuforial)
             data.localLoadPath = Application.persistentDataPath + "/StreamingAssets/Vuforia/GHZVuforia." + downLoadPath.Split('.')[1];
-        data.updataTime = 0;
+        data.updataTime = GameManager.Instance.SceneValue.updateTime;
+        if(UserInfo.Instance.is20)
+            data.updataTime = long.Parse( GameManager.Instance.m_scene.updateTime);
         data.type = ((int)type).ToString();
 
         

+ 5 - 0
Assets/Scripts/UI/GameManager.cs

@@ -155,6 +155,11 @@ public class GameManager : MonoSingleton<GameManager>
         set { m_SpoitIndex = value; }
     }
 
+    /// <summary>
+    ///  2.0  场景数据
+    /// </summary>
+    public UserSceneItem m_scene;
+
     /// <summary>
     /// 当前场景数据
     /// </summary>