You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
481 B
18 lines
481 B
using System; |
|
using System.Collections.Generic; |
|
|
|
namespace ET |
|
{ |
|
/// <summary> |
|
/// Config组件会扫描所有的有ConfigAttribute标签的配置,加载进来 |
|
/// </summary> |
|
[ComponentOf(typeof(Scene))] |
|
public class ConfigComponent: Entity, IAwake, IDestroy |
|
{ |
|
public IConfigLoader ConfigLoader; |
|
|
|
public static ConfigComponent Instance; |
|
|
|
public Dictionary<Type, object> AllConfig = new Dictionary<Type, object>(); |
|
} |
|
} |