zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Model/Component/GlobalConfigComponent.cs

24 lines
488 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
namespace ET
{
public class GlobalConfigComponentAwakeSystem : AwakeSystem<GlobalConfigComponent>
{
public override void Awake(GlobalConfigComponent t)
{
t.Awake();
}
}
public class GlobalConfigComponent : Entity
{
public static GlobalConfigComponent Instance;
public GlobalProto GlobalProto;
public void Awake()
{
Instance = this;
string configStr = ConfigHelper.GetGlobal();
this.GlobalProto = MongoHelper.FromJson<GlobalProto>(configStr);
}
}
}