Пример #1
0
 // Use this for initialization
 void Start()
 {
     TS = GetComponent<TextSetting>();
 }
Пример #2
0
        public void EditUserValue(string newValue, string username)
        {
            var setting = new TextSetting(app);

            var userHelper = new UserHelper(app);
            var userId = userHelper.GetId(new SearchExpression(username));
            if (userId.HasValue)
            {
                setting.LoadUserValue("AlexanderChechetSetting", userId.Value);
                setting.Value = newValue;
                setting.Save();
            }
        }
Пример #3
0
        public void EditSystemValue(string newValue)
        {
            var setting = new TextSetting(app);

            setting.LoadSystemValue("AlexanderChechetSetting");
            setting.Value = newValue;
            setting.Save();
        }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     MD = GetComponent<MainData>();
     TS = MD.TS;
     LL = GetComponent<LottoLogic> ();
 }