脚本重构

This commit is contained in:
2025-01-14 20:40:54 +08:00
parent 96e87cc8d0
commit a55300df21
35 changed files with 840 additions and 1593 deletions
@@ -7,7 +7,7 @@ public class UFModule : MonoBehaviour
{
private GameObject _ufCover;
private GameObject _ufModule;
private UFData _ufData;
private UFData _ufData=new ();
private void Awake()
{
@@ -16,7 +16,7 @@ public class UFModule : MonoBehaviour
// 添加加载逻辑
_ufData.LoadEvent += LoadData;
_ufModule = transform.Find("Module Pic").gameObject;
_ufCover = transform.Find("Cover").gameObject;
_ufCover = _ufModule.transform.Find("Cover").gameObject;
}
// Start is called before the first frame update