You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			517 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			517 B
		
	
	
	
		
			C#
		
	
| using cfg;
 | |
| using Luban;
 | |
| using Script.FrameWork;
 | |
| using UnityEngine;
 | |
| using YooAsset;
 | |
| 
 | |
| namespace Script.GameLogic.Manager
 | |
| {
 | |
|     public class DataTableManager : Singleton<DataTableManager>
 | |
|     {
 | |
|         public Tables Table;
 | |
|         public override void Init()
 | |
|         {
 | |
|             Table = new Tables(file =>
 | |
|             {
 | |
|                 var obj = YooAssets.LoadAssetSync(file).AssetObject as TextAsset;
 | |
|                 var buff = obj.bytes;
 | |
|                 return new ByteBuf(buff);
 | |
|             });
 | |
|         }
 | |
|     }
 | |
| } |