存储功能更新
This commit is contained in:
@@ -2,6 +2,7 @@ using UnityEngine;
|
||||
using AibisDream.Framework;
|
||||
using AibisDream;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using AibisDream.FixSystem;
|
||||
|
||||
public class UFModule : MonoBehaviour
|
||||
@@ -17,7 +18,7 @@ public class UFModule : MonoBehaviour
|
||||
private void Awake()
|
||||
{
|
||||
// 将数据注册到数据容器内
|
||||
GameLoopManager.FixDataContainer.Register(_ufData);
|
||||
StorageSystem.Instance.RegisterData(_ufData);
|
||||
// 添加加载逻辑
|
||||
_ufData.LoadEvent += LoadData;
|
||||
_ufModule = transform.Find("Module Pic").gameObject;
|
||||
@@ -118,8 +119,9 @@ public class UFData : IData
|
||||
|
||||
public event Action<UFData> LoadEvent;
|
||||
|
||||
public void Load()
|
||||
public IEnumerator Load()
|
||||
{
|
||||
LoadEvent?.Invoke(this);
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user