示例#1
0
 public static void OnChangeValueType(EnumMahJongValueType type)
 {
     EnumMahjongValueType = type;
     for (int i = 0, lenth = _list.Count; i < lenth; i++)
     {
         _list[i].OnDataChange();
     }
 }
示例#2
0
 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);
     }
 }