protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds) { base.OnUpdate(procedureOwner, elapseSeconds, realElapseSeconds); if (!GameEntry.Net.IsConnectedToServer) { procedureOwner.SetData <VarInt>(Constant.ProcedureData.NextSceneId, (int)SceneId.Login); ChangeState <ProcedureChangeScene>(procedureOwner); return; } m_BattleMgr.Update(); }