From 411470e66bcfd9631c7b6f82b0a00e5e1e1b0004 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Tue, 27 Jun 2023 18:43:09 +0800 Subject: + stage serialize --- .../Assets/Scripts/Data/DataManager_Func.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs (limited to 'WorldlineKeepers/Assets/Scripts/Data/DataManager_Func.cs') 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 + { + + 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 -- cgit v1.1-26-g67d0