public override void update(GameTime _GameTime) { base.update(_GameTime); if (Configuration.Configuration.isHost) { foreach (Dimension.Dimension var_Dimension in this.dimensions) { List <PlayerObject> var_PlayerObjects = new List <PlayerObject>(); foreach (PlayerObject var_PlayerObject in this.playerObjects) { if (var_PlayerObject.DimensionId == var_Dimension.Id) { var_PlayerObjects.Add(var_PlayerObject); } } var_Dimension.setCurrentPlayerObjects(var_PlayerObjects); var_Dimension.update(_GameTime); } } else { PlayerObject var_PlayerObject = Configuration.Configuration.networkManager.client.PlayerObject; if (var_PlayerObject != null) { int var_DimensionId = var_PlayerObject.DimensionId; Dimension.Dimension var_Dimension = this.getDimensionById(var_DimensionId); if (var_Dimension != null) { var_Dimension.setCurrentPlayerObjects(new List <PlayerObject>() { var_PlayerObject }); var_Dimension.update(_GameTime); } else { //this.createDimension(var_DimensionId); } } } }