Пример #1
0
        public void ChangeValue()
        {
            var data = GetData <ItemData>();

            if (data == null)
            {
                return;
            }
            var value = GetValid(data);

            data.Value = value;
            var info = data.Parent;

            CreateRoomRuleInfo.SaveItemValue(info.CurTabId, data.Id, info.GameKey, value);
        }
Пример #2
0
        public void ChangeValue()
        {
            var data = GetData <ItemData>();

            if (data == null)
            {
                return;
            }
            var value = PopList.value;
            var items = PopList.items;

            if (items == null)
            {
                return;
            }
            var index = items.IndexOf(value).ToString();

            data.Value = index;
            var info = data.Parent;

            CreateRoomRuleInfo.SaveItemValue(info.CurTabId, data.Id, info.GameKey, index);
        }
Пример #3
0
 protected void SaveValue(ItemData data,string value)
 {
     var info = data.Parent;
     CreateRoomRuleInfo.SaveItemValue(info.CurTabId, data.Id, info.GameKey, value);
 }