新增脚本

This commit is contained in:
2025-12-26 20:35:52 +08:00
parent 875960d3fd
commit 45129be7dc
60 changed files with 3384 additions and 70247 deletions

View File

@@ -11,6 +11,10 @@ namespace NBF.Fishing2
public static GameObject LoadPrefab(string path, Transform parent = null)
{
var prefab = Assets.Load<GameObject>(path);
if (prefab == null)
{
}
return parent == null ? Object.Instantiate(prefab) : Object.Instantiate(prefab, parent);
}