24 lines
488 B
C#
24 lines
488 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|