public virtual void Update(int intervalMS) { if (IsAutoUpdateBattle && current_battle != null) { current_battle.BeginUpdate(intervalMS); } tasks.ProcessMessages((act) => { try { act.Invoke(); } catch (Exception err) { DoError(err); } }); timer_tasks.Update(intervalMS); if (gate_client != null) { gate_client.Update(); } if (game_client != null) { game_client.Update(); } if (IsAutoUpdateBattle && current_battle != null) { current_battle.Update(); } foreach (var module in mModules) { module.Update(intervalMS); } }
// Update is called once per frame public void Update() { //dispatch msg if (_connection != null) { _connection.Update(); //处理网络连接成功 if (_connectCallback != null && _connectSuccess) { _connectCallback(_canLogin, _serverList); _serverList = null; _connectSuccess = false; _canLogin = false; } } }
public void Update() { _GateClientConnection.Update(); _GameSvrConnection.Update(); }
//When quit, release resource void Update() { pomeloClient.Update(); }