public void refresh(DeviceInfoList list) { bool check = true; bool hasGod = false; foreach (DeviceInfo info in list) { if (info.state == DeviceInfo.State.Joined) { check = false; break; } if (Database.Instance.godIndex == info.id) { hasGod = true; } } if (check && hasGod) { open(); } else { close(); } }
private void refresh(Hero[] heros) { DeviceInfoList infoList = HudManager.Instance.infoList; infoList.clear(); foreach (Hero hero in heros) { DeviceInfo info = infoList.create(); readHero(hero, ref info); } HudManager.Instance.barRefresh(); }
public void refresh(DeviceInfoList list) { _devices.refresh(list); _start.refresh(list); }