Пример #1
0
 public static void OnChangeBgType(EnumMahJongColorType type)
 {
     EnumMahJongColorType = type;
     for (int i = 0, lenth = _list.Count; i < lenth; i++)
     {
         _list[i].OnDataChange();
     }
 }
Пример #2
0
 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);
     }
 }