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