summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-06-27 18:43:09 +0800
committerchai <215380520@qq.com>2023-06-27 18:43:09 +0800
commit411470e66bcfd9631c7b6f82b0a00e5e1e1b0004 (patch)
tree9a3d3b453702834eb4ad6a4b7eabb6a7b5422880 /WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs
parent3d1e930feed19641f0f386463f4de33385f24c51 (diff)
+ stage serialize
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs
new file mode 100644
index 0000000..da84bad
--- /dev/null
+++ b/WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs
@@ -0,0 +1,22 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace WK.Data
+{
+
+ public partial class DataManager : Singleton<DataManager>
+ {
+
+ public FileDescriptor GetFile(string filekey)
+ {
+ FileDescriptor descriptor;
+ if(m_Filelist.TryGetValue(filekey, out descriptor))
+ {
+ return m_Filelist[filekey];
+ }
+ return null;
+ }
+
+ }
+} \ No newline at end of file