//初始化boss界面(要跟后台通讯) public void initWindow() { GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI); //updateUI(); }
/// <summary> /// 断线重连 /// </summary> public override void OnNetResume() { base.OnNetResume(); GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; fport.access(CommandConfigManager.Instance.getBossFightSid(), UpdateUI); //UpdateUI(); }
public void init(Award[] aw, CallBack callback) { this.prizes = AllAwardViewManagerment.Instance.exchangeAwards(aw); this.prizes = AllAwardViewManagerment.Instance.contrastToArray(this.prizes); this.callBack = callback; GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; fport.access(CommandConfigManager.Instance.getBossFightSid(), UpdateUI); //UpdateUI(); }
/** 激活 */ protected override void DoEnable() { base.DoEnable(); UiManager.Instance.backGround.switchBackGround("ChouJiang_BeiJing"); if (!AttackBossOneOnOneManager.Instance.bossFightIsOpen()) { updateNotOpen = false; updateOpen = true; updateUIForNotOpen(); } else { updateNotOpen = true; updateOpen = false; GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI); } }
private void updateInfo() { DateTime dt = TimeKit.getDateTimeMillis(ServerTimeKit.getMillisTime());//获取服务器时间 int dayOfWeek = TimeKit.getWeekCHA(dt.DayOfWeek); int nowOfDay = ServerTimeKit.getCurrentSecond(); int[] timeInfo = CommandConfigManager.Instance.getOneOnOneBossTimeInfo(); //开放时间 int[] data = CommandConfigManager.Instance.getOneOnOneBossData(); //开放日期 for (int i = 0; i < data.Length; i++) { // if (dayOfWeek == data[i] && (nowOfDay == timeInfo[0] || nowOfDay == timeInfo[1])) { // GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; // fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI); // return; // } if (dayOfWeek == data[i] && (nowOfDay >= timeInfo[0] && nowOfDay <= timeInfo[1])) { updateNotOpen = true; if (updateOpen) { updateOpen = false; GetBossAttackFPort fport = FPortManager.Instance.getFPort("GetBossAttackFPort") as GetBossAttackFPort; fport.access(CommandConfigManager.Instance.getBossFightSid(), updateUI); } updateTime(timeInfo, nowOfDay); } else { updateOpen = true; if (updateNotOpen) { updateNotOpen = false; updateUIForNotOpen(); } } } }