public void OnValueSet(string curKey, object curValue, bool save) { if (pl != null) { pl.Set(curKey, curValue); } if (roomInfo != null) { roomInfo.Set(curKey, curValue); } if (save) { PlayerPrefsSet(curKey, curValue); } }