@@ -38,28 +38,33 @@ public class JPrefab: IDisposable
3838 /// 从热更资源里读取prefab
3939 /// </summary>
4040 /// <param name="path"></param>
41- public JPrefab ( string path , bool async = false ) : this ( path , async, null )
41+ public JPrefab ( string path , bool async = false ) : this ( path , null , async, null )
4242 {
4343
4444 }
4545
4646 /// <summary>
47- /// Load a prefab from hot update resources (async)
48- /// 从热更资源里读取prefab (异步)
47+ /// Load a prefab from hot update resources
48+ /// 从热更资源里读取prefab
4949 /// </summary>
5050 /// <param name="path"></param>
51- /// <param name="complete">Action<bool,JPrefab>, success 与 JPrefab</param>
52- public JPrefab ( string path , Action < bool , JPrefab > complete = null ) : this ( path , true , complete )
51+ public JPrefab ( string path , string package , bool async = false ) : this ( path , package , async, null )
5352 {
5453
5554 }
5655
57- public JPrefab ( string path , string package , Action < bool , JPrefab > complete = null ) : this ( path , package , true , complete )
56+ /// <summary>
57+ /// Load a prefab from hot update resources (async)
58+ /// 从热更资源里读取prefab (异步)
59+ /// </summary>
60+ /// <param name="path"></param>
61+ /// <param name="complete">Action<bool,JPrefab>, success 与 JPrefab</param>
62+ public JPrefab ( string path , Action < bool , JPrefab > complete = null ) : this ( path , null , true , complete )
5863 {
5964
6065 }
6166
62- public JPrefab ( string path , bool async , Action < bool , JPrefab > complete ) : this ( path , null , true , complete )
67+ public JPrefab ( string path , string package , Action < bool , JPrefab > complete = null ) : this ( path , package , true , complete )
6368 {
6469
6570 }
0 commit comments