void BindContent() { Configure_Service.GetValue("About", c => { EConfigure config = c.GetData() as EConfigure; Content.text = config.Value; }); }
void BindData() { Configure_Service.GetValue("IsSendNotic", c => { EConfigure config = c.GetData() as EConfigure; BtnIsSendNotic.isOn = bool.Parse(config.Value); }); }
void OnBtnIsSendNoticClicked(GameObject g) { Configure_Service.GetValue("IsSendNotic", c => { EConfigure config = c.GetData() as EConfigure; if (BtnIsSendNotic.isOn) { config.Value = "True"; } else { config.Value = "False"; } BaseOperation_Service.Change <EConfigure>(config, t => { App.Instance.HintBox.Show("设置成功!"); }); }); }