using UnityEngine; namespace ET { [ObjectSystem] public class GlobalConfigComponentAwakeSystem : AwakeSystem { public override void Awake(GlobalConfigComponent self) { GameObject config = (GameObject)ResourcesHelper.Load("KV"); string configStr = config.Get("GlobalProto").text; self.GlobalProto = JsonHelper.FromJson(configStr); } } }