|
|
@@ -8,11 +8,17 @@ namespace GFGGame
|
|
|
public GameObject desktop;
|
|
|
public void Init()
|
|
|
{
|
|
|
+ Debug.Log($"正在初始化 GetUUIPrefabPath");
|
|
|
string path = ResPathUtil.GetUUIPrefabPath("UICanvas");
|
|
|
+ Debug.Log($"正在初始化 handle");
|
|
|
var handle = YooAssets.LoadAssetSync<GameObject>(path);
|
|
|
+ Debug.Log($"正在初始化 canvas");
|
|
|
var canvas = handle.InstantiateSync();
|
|
|
+ Debug.Log($"正在初始化 desktop");
|
|
|
desktop = canvas.transform.Find("Desktop").gameObject;
|
|
|
+ Debug.Log($"正在初始化 DontDestroyOnLoad");
|
|
|
GameObject.DontDestroyOnLoad(canvas);
|
|
|
+ Debug.Log($"正在初始化 Init end");
|
|
|
|
|
|
//// 初始化窗口系统
|
|
|
//UniWindow.Initalize(desktop);
|