public static void OnChangeBgType(EnumMahJongColorType type) { EnumMahJongColorType = type; for (int i = 0, lenth = _list.Count; i < lenth; i++) { _list[i].OnDataChange(); } }
public void OnSelectBg(GameObject selectObj, bool state) { if (state) { EnumMahJongColorType type = (EnumMahJongColorType)Enum.Parse(typeof(EnumMahJongColorType), selectObj.name); PlayerPrefs.SetInt(ConstantData.KeyMahjongBgType, (int)type); MahjongItem.OnChangeBgType(type); } }