Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void refresh(DeviceInfoList list)
 {
     _devices.refresh(list);
     _start.refresh(list);
 }