示例#1
0
 void BindContent()
 {
     Configure_Service.GetValue("About", c =>
     {
         EConfigure config = c.GetData() as EConfigure;
         Content.text      = config.Value;
     });
 }
示例#2
0
 void BindData()
 {
     Configure_Service.GetValue("IsSendNotic", c =>
     {
         EConfigure config   = c.GetData() as EConfigure;
         BtnIsSendNotic.isOn = bool.Parse(config.Value);
     });
 }
示例#3
0
 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("设置成功!");
         });
     });
 }