private SideWall CreateWall(int wallLenght, Vector3 wallPostion, Quaternion rotation) { var result = new SideWall(this, wallLenght); result.Wall.transform.parent = KosturBabo.transform; result.Wall.transform.localPosition = wallPostion; result.Wall.transform.localRotation = rotation; return result; }
private SideWall CreateWall(int wallLenght, Vector3 wallPostion, Quaternion rotation) { var result = new SideWall(this, wallLenght); result.Wall.transform.parent = KosturBabo.transform; result.Wall.transform.localPosition = wallPostion; result.Wall.transform.localRotation = rotation; return(result); }
private void CreateChildWalls() { _panelWidth = 1.2f; SouthWall = CreateWall(_length, new Vector3(0, 0, 0), Rotation.South); EastWall = CreateWall(_width, new Vector3(_panelWidth*_length, 0, 0), Rotation.East); NorthWall = CreateWall(_length, new Vector3(_panelWidth*_length, 0, _width*_panelWidth), Rotation.North); WestWall = CreateWall(_width, new Vector3(0, 0, _width*_panelWidth), Rotation.West); }