From 3e4ddc7622205f8049e3f651ebbda4967fcb9ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Sun, 22 May 2022 17:23:52 +1000 Subject: [PATCH] Update JPrefab.cs --- .../HotUpdateScripts/JEngine/Core/JPrefab.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/UnityProject/HotUpdateScripts/JEngine/Core/JPrefab.cs b/UnityProject/HotUpdateScripts/JEngine/Core/JPrefab.cs index 92f29848..18aa1db4 100644 --- a/UnityProject/HotUpdateScripts/JEngine/Core/JPrefab.cs +++ b/UnityProject/HotUpdateScripts/JEngine/Core/JPrefab.cs @@ -38,28 +38,33 @@ public class JPrefab: IDisposable /// 从热更资源里读取prefab /// /// - public JPrefab(string path, bool async = false) : this(path, async, null) + public JPrefab(string path, bool async = false) : this(path, null, async, null) { } /// - /// Load a prefab from hot update resources (async) - /// 从热更资源里读取prefab (异步) + /// Load a prefab from hot update resources + /// 从热更资源里读取prefab /// /// - /// Action, success 与 JPrefab - public JPrefab(string path, Action complete = null) : this(path, true, complete) + public JPrefab(string path, string package, bool async = false) : this(path, package, async, null) { } - public JPrefab(string path,string package, Action complete = null) : this(path,package, true, complete) + /// + /// Load a prefab from hot update resources (async) + /// 从热更资源里读取prefab (异步) + /// + /// + /// Action, success 与 JPrefab + public JPrefab(string path, Action complete = null) : this(path, null, true, complete) { } - public JPrefab(string path, bool async, Action complete) : this(path,null, true, complete) + public JPrefab(string path,string package, Action complete = null) : this(path,package, true, complete) { }