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); }
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); }
protected void SaveValue(ItemData data,string value) { var info = data.Parent; CreateRoomRuleInfo.SaveItemValue(info.CurTabId, data.Id, info.GameKey, value); }