using System.IO;
using Newtonsoft.Json;

namespace KYFramework
{
    [ObjectSystem]
    public class OptionComponentAwakeSystem : AwakeSystem<OptionComponent>
    {
        public override void Awake(OptionComponent self)
        {
            OptionComponent.Instance = self;
            
            string content = File.ReadAllText("Setting.json");

            self.option =JsonConvert.DeserializeObject<Option>(content);
        }
    }


    public static class OptionComponentSystem
    {
        
    }
}