public void ShowWindow(IEnumerable <int> pais) { this.Reset(); List <HuaSeType> huaSeList = new List <HuaSeType>(); foreach (int item in pais) { HuaSeType huase = CommonUtility.GetHuaSeFromId(item); if (!huaSeList.Contains(huase)) { huaSeList.Add(huase); } } if (huaSeList.Count == 3) { for (int i = 0; i < m_PaisSprites.Length; i++) { m_PaisSprites[i].SetSprite(m_PaisName[i].paisNames[1]); m_EnableDinQue[i] = true; } } else { Array enmuArray = Enum.GetValues(typeof(HuaSeType)); for (int i = 0; i < enmuArray.Length - 1; i++) { if (!huaSeList.Contains((HuaSeType)enmuArray.GetValue(i))) { m_PaisSprites[i].SetSprite(m_PaisName[i].paisNames[1]); m_EnableDinQue[i] = true; } } } base.ShowWindow(); }
public void SetDinQueType(HuaSeType type, int room) { m_DinQueSprite[room].SetSprite(this.m_DinQueSpriteName[(int)type]); m_DinQueSprite[room].gameObject.SetActive(true); }