// Token: 0x06002B9C RID: 11164 RVA: 0x001040F8 File Offset: 0x001022F8 private static bool UpdateAllowed() { //MultiplayerBuilder.SetDefaultPlaceTransform(ref MultiplayerBuilder.placePosition, ref MultiplayerBuilder.placeRotation); bool flag = false; ConstructableBase componentInParent = MultiplayerBuilder.ghostModel.GetComponentInParent <ConstructableBase>(); bool flag2; if (componentInParent != null) { Transform transform = componentInParent.transform; transform.position = MultiplayerBuilder.placePosition; transform.rotation = MultiplayerBuilder.placeRotation; flag2 = componentInParent.UpdateGhostModel(MultiplayerBuilder.GetAimTransform(), MultiplayerBuilder.ghostModel, default(RaycastHit), out flag); //MultiplayerBuilder.placePosition = transform.position; //MultiplayerBuilder.placeRotation = transform.rotation; if (flag) { MultiplayerBuilder.renderers = MaterialExtensions.AssignMaterial(MultiplayerBuilder.ghostModel, MultiplayerBuilder.ghostStructureMaterial); MultiplayerBuilder.InitBounds(MultiplayerBuilder.ghostModel); } } else { flag2 = MultiplayerBuilder.CheckAsSubModule(); } if (flag2) { List <GameObject> list = new List <GameObject>(); MultiplayerBuilder.GetObstacles(MultiplayerBuilder.placePosition, MultiplayerBuilder.placeRotation, MultiplayerBuilder.bounds, list); flag2 = (list.Count == 0); list.Clear(); } return(flag2); }