public void InputFromUserAccepted() // should be called after the input from the user is received { ChangeDimension(); topWall.WallUpdate(); bottomWall.WallUpdate(); leftWall.WallUpdate(); rightWall.WallUpdate(); //Assigning the positions of te corner unit foreach (GameObject cabinet in CabinetManager.Instance.cabinetsInScene) { if (cabinet.GetComponent <CabinetScript>()._typeOfCabinet == CabinetScript.TypeOfCabinet.CornerCabinet) { cabinet.GetComponent <CabinetScript>().Positioning(); } } //Assinging the positions, scale and rotation of the bounding box topWall.boundingBox.PositionScaleRotation(); bottomWall.boundingBox.PositionScaleRotation(); leftWall.boundingBox.PositionScaleRotation(); rightWall.boundingBox.PositionScaleRotation(); //Finding the cabinets within the boundingBox and assigning it to its respective walls topWall.boundingBox.FindCabinetsInsideTheBoundingBox(); bottomWall.boundingBox.FindCabinetsInsideTheBoundingBox(); leftWall.boundingBox.FindCabinetsInsideTheBoundingBox(); rightWall.boundingBox.FindCabinetsInsideTheBoundingBox(); //Assinging the positions of the cabinets (except corner cabinet) foreach (GameObject cabinet in CabinetManager.Instance.cabinetsInScene) { if (cabinet.GetComponent <CabinetScript>()._typeOfCabinet != CabinetScript.TypeOfCabinet.CornerCabinet) { cabinet.GetComponent <CabinetScript>().Positioning(); } } //To find wallHob ratio HobWall(); //Add Cabinets topWall.boundingBox.AddSubtractBaseCabinets(); bottomWall.boundingBox.AddSubtractBaseCabinets(); leftWall.boundingBox.AddSubtractBaseCabinets(); rightWall.boundingBox.AddSubtractBaseCabinets(); // //Subtract Cabinets // topWall.boundingBox.SubtractCabinets (); // bottomWall.boundingBox.SubtractCabinets (); // leftWall.boundingBox.SubtractCabinets (); // rightWall.boundingBox.SubtractCabinets (); }