using System.IO; using Newtonsoft.Json; namespace KYFramework { [ObjectSystem] public class OptionComponentAwakeSystem : AwakeSystem { public override void Awake(OptionComponent self) { OptionComponent.Instance = self; string content = File.ReadAllText("Setting.json"); self.option =JsonConvert.DeserializeObject