脚本重构

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
+1 -1
View File
@@ -9,7 +9,7 @@ public class FavoritesManager : MonoBehaviour
{
public static FavoritesManager Instance;
private ClueData _clueData;
private ClueData _clueData=new ClueData();
public Button toggleFavoritesButton; // 用于打开/关闭收藏夹的按钮
@@ -10,7 +10,7 @@ public class ChipModule : MonoBehaviour
{
private GameObject _chipModule;
private ChipData _chipData;
private ChipData _chipData=new ();
private void Awake()
{
@@ -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
@@ -23,7 +23,7 @@ public class EyeSystem : MonoBehaviour
public GameObject eyeView;
public ViewCameraManager cameraManager;
private IEyeStateEffect eyeStateEffect;
private EyeData _eyeData;
private EyeData _eyeData=new ();
private Tween hsvShiftTween;
private MouseFollowAndZoom mouseFollowAndZoom;
private void Awake()