Exemple #1
0
        //多线路输送机(平行于高架库方向)
        #region Create_ConveyorGroup1
        public void Create_ConveyorGroup1(ParametersList1 PL, GameObject ConveyorGroup)
        {
            CreateModel.HighStoreShelf_Parameter HP  = PL.HP;
            CreateModel.MultiHighBay_Parameter   MHP = PL.MHP;

            GameObject BeltConveyor = new GameObject(); BeltConveyor.name = "BeltConveyor"; //string type1 = "Origion";

            CreateModel.RollerConveyor.Create_BeltConveyor(PL.RCP, BeltConveyor);
            //采用皮带式输送机构造一条输送线
            GameObject BeltConveyors = new GameObject(); BeltConveyors.name = "BeltConveyors";

            BeltConveyor.transform.parent        = BeltConveyors.transform; BeltConveyor.transform.Rotate(0, 180, 0);
            BeltConveyor.transform.localPosition = new Vector3(0, 0, 0);
            GameObject BeltConveyor2 = Instantiate(BeltConveyor); BeltConveyor2.name = BeltConveyor.name + 2.ToString();

            BeltConveyor2.transform.parent        = BeltConveyors.transform;
            BeltConveyor2.transform.localPosition = new Vector3(0, 0, -PL.RCP.RCLength);
            GameObject BeltConveyor3 = Instantiate(BeltConveyor); BeltConveyor3.name = BeltConveyor.name + 3.ToString();

            BeltConveyor3.transform.parent        = BeltConveyors.transform;
            BeltConveyor3.transform.localPosition = new Vector3(0, 0, -PL.RCP.RCLength * 2);
            for (int i = 0; i < (PL.MHP.Num + 1) / 2; i++)
            {
                GameObject clone1 = Instantiate(BeltConveyors); clone1.transform.parent = ConveyorGroup.transform;
                clone1.name = BeltConveyors.name + (i + 1).ToString();
                float TempValue1 = PL.RCP.RCWidth / 2 - ((2 * i + 1) * HP.Size.x + i * MHP.TunnelWidth + i * MHP.HookupDistance);
                clone1.transform.localPosition = new Vector3(TempValue1, 0, 0);
            }
            DestroyImmediate(BeltConveyors);
        }
Exemple #2
0
        //场景关键点信息
        #region Create_SceneInfo
        public void Create_SceneInfo(ref ParametersList1 PL, out Varibles.KeyPositionsData KPD)
        {
            CreateModel.RollerConveyor_Parameter RCP = PL.RCP;
            CreateModel.HighStoreShelf_Parameter HP  = PL.HP;
            CreateModel.MultiHighBay_Parameter   MHP = PL.MHP;
            Varibles.KeyPositionsData            KP  = new Varibles.KeyPositionsData();
            KP.HighBaysNum = MHP.Num;//高架库数目

            //Vector3[] LiftTransferPositions = new Vector3[]
            KP.HighValues      = new float[] { RCP.RCHigh, RCP.RCHigh - 0.1f };//两种输送线高度
            KP.ConveyorLengths = new float[2] {
                RCP.RCLength, HP.Size.x * 2 + MHP.HookupDistance + MHP.TunnelWidth - RCP.RCWidth
            };
            KP.EnterPosition = new Vector3((KP.ConveyorLengths[1] + RCP.RCWidth - HP.Size.x), RCP.RCHigh - 0.1f, -RCP.RCWidth / 2);//入口处坐标
            float[] ConveyorLinesValues = new float[(MHP.Num + 1) / 2];
            float[] PilerLinesValues    = new float[(MHP.Num + 1) / 2];

            for (int i = 0; i < (MHP.Num + 1) / 2; i++)
            {
                ConveyorLinesValues[i] = -(-RCP.RCWidth / 2 + (2 * i + 1) * HP.Size.x + i * MHP.TunnelWidth + i * MHP.HookupDistance);
                PilerLinesValues[i]    = -(MHP.TunnelWidth / 2 + i * (MHP.TunnelWidth + MHP.HookupDistance) + (2 * i + 1) * HP.Size.x);
            }
            KP.ConveyorLinesValues = ConveyorLinesValues; //每条入库输送线的X值
                                                          //KP.ConveyorLinesLength = 3 * RCP.RCLength;//入库输送线的长度
            KP.ConveyorWidth    = RCP.RCWidth;            //输送线宽度
            KP.PilerLinesValues = PilerLinesValues;       //每条堆垛机线路的X值
            Vector3[] HighBaysPositions = new Vector3[MHP.Num];
            for (int i = 0; i < MHP.Num; i++)
            {
                float TempValue = HP.Size.x / 2 + i * HP.Size.x + ((i + 1) / 2) * MHP.TunnelWidth + (i / 2) * MHP.HookupDistance;
                HighBaysPositions[i] = new Vector3(-TempValue, 0, -(RCP.RCWidth + 2 * RCP.RCLength));
            }
            KP.HighBaysPositions = HighBaysPositions; //高架库的坐标
            KP.CargoSize         = PL.CargoSize;      //货物尺寸
            Varibles.StorePositions StorePositions = new Varibles.StorePositions();
            float[] StoreFloorPositions            = new float[HP.FloorsNum];
            float[] StoreColumnPositions           = new float[HP.ColumnsNum];
            float   TempValue1 = 0;

            for (int i = 0; i < HP.FloorsNum; i++)
            {
                TempValue1            += HP.FloorsHigh[i];
                StoreFloorPositions[i] = TempValue1;
            }
            for (int j = 0; j < HP.ColumnsNum; j++)
            {
                StoreColumnPositions[j] = -(HP.ColumnWidth / 2 + (j + 1) * HP.ColumnWidth);
            }
            float[] StorePlacePosition = { HP.ColumnWidth / 4, -HP.ColumnWidth / 4 };
            StorePositions.StoreFloorPositions  = StoreFloorPositions;
            StorePositions.StoreColumnPositions = StoreColumnPositions;
            StorePositions.StorePlacePosition   = StorePlacePosition;
            KP.StorePositions = StorePositions;//高架库仓位坐标信息
            KPD = KP;
            Debug.Log(KPD.ConveyorLengths);
        }
Exemple #3
0
        //创建顶升移栽组合
        #region Create_LiftTransferGroup
        public void Create_LiftTransferGroup(ParametersList1 PL, GameObject LiftTransferGroup)
        {
            CreateModel.LiftTransferParameter LTP = new CreateModel.LiftTransferParameter();
            LTP.High         = PL.RCP.RCHigh - 0.1f;
            LTP.Width        = PL.RCP.RCWidth;
            LTP.RollerRadius = 1.5f * PL.RCP.RollerRadius;
            LTP.GearDiameter = PL.RCP.RollerRadius * 2;

            GameObject LiftTransfer = new GameObject(); LiftTransfer.name = "LiftTransfer";

            CreateModel.LiftTransfer1.CreateLiftTransfer(LiftTransfer, ref LTP);
            for (int i = 0; i < (PL.MHP.Num + 1) / 2 + 1; i++)//增加一个出口顶升移栽机
            {
                GameObject clone = Instantiate(LiftTransfer); clone.name = LiftTransfer.name + (i + 1).ToString();
                clone.transform.parent = LiftTransferGroup.transform;
                float TempValue = PL.RCP.RCWidth / 2 - ((2 * i + 1) * PL.HP.Size.x + i * PL.MHP.TunnelWidth + i * PL.MHP.HookupDistance);
                clone.transform.localPosition = new Vector3(TempValue, 0, 0);
            }
            DestroyImmediate(LiftTransfer);
        }
Exemple #4
0
        //生成出库的皮带输送机
        #region Create_ExitConveyors
        public void Create_ExitConveyors(ParametersList1 PL, GameObject BeltConveyors)
        {
            CreateModel.HighStoreShelf_Parameter HP = PL.HP;

            GameObject BeltConveyor = new GameObject(); BeltConveyor.name = "BeltConveyor"; //string type1 = "Origion";

            CreateModel.RollerConveyor.Create_BeltConveyor(PL.RCP, BeltConveyor);
            //采用皮带式输送机构造一条输送线
            // GameObject BeltConveyors = new GameObject(); BeltConveyors.name = "BeltConveyors";
            BeltConveyor.transform.parent        = BeltConveyors.transform; //BeltConveyor.transform.Rotate(0, -180, 0);
            BeltConveyor.transform.localPosition = new Vector3(0, 0, 0);
            GameObject BeltConveyor2 = Instantiate(BeltConveyor); BeltConveyor2.name = BeltConveyor.name + 2.ToString();

            BeltConveyor2.transform.parent        = BeltConveyors.transform;
            BeltConveyor2.transform.localPosition = new Vector3(0, 0, PL.RCP.RCLength);
            GameObject BeltConveyor3 = Instantiate(BeltConveyor); BeltConveyor3.name = BeltConveyor.name + 3.ToString();

            BeltConveyor3.transform.parent        = BeltConveyors.transform;
            BeltConveyor3.transform.localPosition = new Vector3(0, 0, PL.RCP.RCLength * 2);

            //BeltConveyor
        }
Exemple #5
0
        //输送机(多个)(垂直于高架库方向)
        #region Create_ConveyorGroup2
        public void Create_ConveyorGroup2(ParametersList1 PL, GameObject ConveyorGroup)
        {
            CreateModel.RollerConveyor_Parameter RCP = new CreateModel.RollerConveyor_Parameter();
            RCP.RCHigh       = PL.RCP.RCHigh - 0.1f;
            RCP.RCWidth      = PL.RCP.RCWidth;
            RCP.RCLength     = PL.MHP.HookupDistance + PL.MHP.TunnelWidth + 2 * PL.HP.Size.x - RCP.RCWidth;
            RCP.RollerRadius = PL.RCP.RollerRadius;

            GameObject Conveyor = new GameObject(); Conveyor.name = "Conveyor";

            CreateModel.RollerConveyorType type = CreateModel.RollerConveyorType.Intact;
            CreateModel.RollerConveyor.Create_RollerConveyor(RCP, Conveyor, type);

            for (int i = 0; i < (PL.MHP.Num + 1) / 2; i++)//增加一个出口输送机
            {
                GameObject clone = Instantiate(Conveyor); clone.name = Conveyor.name + (i + 1).ToString();
                clone.transform.parent = ConveyorGroup.transform;
                float TempValue = -PL.HP.Size.x - i * (PL.HP.Size.x * 2 + PL.MHP.HookupDistance + PL.MHP.TunnelWidth);
                clone.transform.localPosition = new Vector3(TempValue, 0, 0);
                clone.transform.Rotate(0, -90, 0);
            }
            DestroyImmediate(Conveyor);
        }
Exemple #6
0
        //创建多线路堆垛机
        #region Create_Pilers
        public void Create_Pilers(ParametersList1 PL, GameObject OBJ)
        {
            float      Depth          = PL.HP.Size.x;
            float      TunnelWidth    = PL.MHP.TunnelWidth;
            float      HookupDistance = PL.MHP.HookupDistance;
            GameObject OBJ1           = new GameObject(); OBJ1.name = "Piler";

            CreateModel.Piler1.Create(PL.PP, OBJ1);
            //修改叉之间距离
            #region
            GameObject Fork1     = OBJ1.transform.Find("BodyPart").transform.Find("UpPart").transform.Find("Forks").transform.Find("Fork1").gameObject;
            GameObject Fork2     = OBJ1.transform.Find("BodyPart").transform.Find("UpPart").transform.Find("Forks").transform.Find("Fork2").gameObject;
            GameObject PartFork1 = OBJ1.transform.Find("BodyPart").transform.Find("UpPart").transform.Find("Part").transform.Find("叉").gameObject;
            GameObject PartFork2 = OBJ1.transform.Find("BodyPart").transform.Find("UpPart").transform.Find("Part").transform.Find("叉_1").gameObject;
            DestroyImmediate(OBJ1.transform.Find("BodyPart").transform.Find("UpPart").transform.Find("Part").transform.Find("螺丝").gameObject);//删除螺丝
            float   distance  = Fork1.transform.Find("Fork1_1").transform.localPosition.y - Fork1.transform.Find("Fork1_2").transform.localPosition.y;
            Vector3 ForksSize = new Vector3();
            Tools.MyClass.MeshSize(Fork1, ref ForksSize);
            float   tempvalue = (PL.CargoSize.z - ForksSize.z - 0.25f) / 2; Debug.Log(tempvalue);
            Vector3 position1 = Fork1.transform.Find("Fork1_1").transform.localPosition; position1.y = position1.y + tempvalue; Fork1.transform.Find("Fork1_1").transform.localPosition = position1;
            Vector3 position2 = Fork1.transform.Find("Fork1_2").transform.localPosition; position2.y = position2.y - tempvalue; Fork1.transform.Find("Fork1_2").transform.localPosition = position2;
            Vector3 position3 = Fork2.transform.Find("Fork2_1").transform.localPosition; position3.y = position3.y + tempvalue; Fork2.transform.Find("Fork2_1").transform.localPosition = position3;
            Vector3 position4 = Fork2.transform.Find("Fork2_2").transform.localPosition; position4.y = position4.y - tempvalue; Fork2.transform.Find("Fork2_2").transform.localPosition = position4;
            Vector3 position5 = PartFork1.transform.localPosition; position5.y = position5.y - tempvalue; PartFork1.transform.localPosition = position5;
            Vector3 position6 = PartFork2.transform.localPosition; position6.y = position6.y + tempvalue; PartFork2.transform.localPosition = position6;
            #endregion
            int NumofPilers = (PL.MHP.Num + 1) / 2;//所需堆垛机个数
            for (int i = 0; i < NumofPilers; i++)
            {
                GameObject clone = Instantiate(OBJ1); clone.name = OBJ1.name + (i + 1).ToString();
                clone.transform.parent = OBJ.transform;
                float TempValue = -(TunnelWidth / 2 + i * (TunnelWidth + HookupDistance) + (2 * i + 1) * Depth);
                clone.transform.localPosition = new Vector3(TempValue, 0, 0);
            }
            DestroyImmediate(OBJ1);
        }
Exemple #7
0
        //输出多线路运动数据
        #region Create_PositionsList
        public void Create_PositionsList(ref ParametersList1 PL, out Varibles.PositionsList PositonsList)
        {
            CreateModel.HighStoreShelf_Parameter HP  = PL.HP;
            CreateModel.MultiHighBay_Parameter   MHP = PL.MHP;
            CreateModel.RollerConveyor_Parameter RCP = PL.RCP;
            float ConveryorsLength = 2 * HP.ColumnWidth;

            //高架库位置信息
            //HighBayPositions[i,0]记录第i个高架库坐标的X值,[i,1]记录第i个高架库坐标的Y值,[i,2]记录第i个高架库坐标的Z值;
            float[,] HighBayPositions = new float[MHP.Num, 3];
            for (int i = 0; i < MHP.Num; i++)
            {
                HighBayPositions[i, 0] = -(HP.Size.x / 2 + i * HP.Size.x + ((i + 1) / 2) * MHP.TunnelWidth + (i / 2) * MHP.HookupDistance);
                HighBayPositions[i, 1] = 0; HighBayPositions[i, 2] = -PL.Distance - ConveryorsLength + HP.ColumnWidth;
            }
            //输送线的数据
            //ConveyorPositions[i,0]记录第i个高架库坐标的X值,[i,1]记录第i个高架库坐标的Y值,[i,2]记录第i个高架库坐标的Z值;
            //[i,4]记录输送线的长度,
            float[,] ConveyorPositions = new float[MHP.Num, 4];
            for (int i = 0; i < MHP.Num; i++)
            {
                ConveyorPositions[i, 1] = 0; ConveyorPositions[i, 2] = -PL.Distance;
                ConveyorPositions[i, 3] = 2 * HP.ColumnWidth;
                switch (i % 2)
                {
                case 0:
                    ConveyorPositions[i, 0] = -((i + 1) * HP.Size.x + (i / 2) * MHP.TunnelWidth + (i / 2) * MHP.HookupDistance);
                    ConveyorPositions[i, 0] = ConveyorPositions[i, 0] + RCP.RCWidth / 2;
                    break;

                case 1:
                    ConveyorPositions[i, 0] = -(i * HP.Size.x + ((i + 1) / 2) * MHP.TunnelWidth + (i / 2) * MHP.HookupDistance);
                    ConveyorPositions[i, 0] = ConveyorPositions[i, 0] - RCP.RCWidth / 2;
                    break;
                }
            }
            //堆垛机的坐标数据
            //PilerPositions[i,0]记录第i个高架库坐标的X值,[i,1]记录第i个高架库坐标的Y值,[i,2]记录第i个高架库坐标的Z值;
            float[,] PilerPositions = new float[(MHP.Num + 1) / 2, 3];
            for (int i = 0; i < (MHP.Num + 1) / 2; i++)
            {
                PilerPositions[i, 0] = -(MHP.TunnelWidth / 2 + i * (MHP.TunnelWidth + MHP.HookupDistance) + (2 * i + 1) * HP.Size.x);
                PilerPositions[i, 1] = 0; PilerPositions[i, 2] = -PL.Distance - ConveryorsLength + 2 * HP.ColumnWidth;
            }
            //高架库仓位数据
            float[,,,] StorageBinPositions = new float[HP.FloorsNum, HP.ColumnsNum, 2, 3];
            float temphigh = HP.FloorsHigh[0];

            for (int i = 0; i < HP.FloorsNum; i++)
            {
                for (int j = 0; j < HP.ColumnsNum; j++)
                {
                    StorageBinPositions[i, j, 0, 0] = 0; StorageBinPositions[i, j, 0, 1] = temphigh;
                    StorageBinPositions[i, j, 0, 2] = -(HP.ColumnWidth * (j + 1) + HP.ColumnWidth / 4);
                    StorageBinPositions[i, j, 1, 0] = 0; StorageBinPositions[i, j, 1, 1] = temphigh;
                    StorageBinPositions[i, j, 1, 2] = -(HP.ColumnWidth * (j + 1) + 3 * HP.ColumnWidth / 4);
                }
                temphigh = temphigh + HP.FloorsHigh[i + 1];
            }
            //
            Varibles.PositionsList POL;
            POL.HighBayPositions    = HighBayPositions; POL.PilerPositons = PilerPositions; POL.ConveyorPositons = ConveyorPositions;
            POL.StorageBinPositions = StorageBinPositions;
            PositonsList            = POL;
        }
Exemple #8
0
        //计算产生参数
        #region CreateSize
        public void CreateSize(ref CreateModel.HighStoreShelf_Parameter HP, ref CreateModel.MultiHighBay_Parameter MHP, out ParametersList1 PAL)
        {
            //Size1是货物的尺寸;RCP是输送机尺寸
            //ParametersList PL = new ParametersList();
            float Distance0 = HP.ColumnWidth * 2;//坐标点到场景起点的Z距离

            float   tempsize = HP.VerticalStanchionWidth;
            Vector3 CargoSize;

            CargoSize.x = HP.Size.x;
            CargoSize.y = HP.Size.x;
            CargoSize.z = HP.Size.x;

            CreateModel.RollerConveyor_Parameter RCP;
            RCP.RCLength     = HP.ColumnWidth;                     //输送机的长度设为高架库单列宽度
            RCP.RollerRadius = 0.05f;                              //滚筒半径
            RCP.RCWidth      = CargoSize.x + 4 * RCP.RollerRadius; //货物的X尺寸+2*滚筒半径+tempsize
            RCP.RCHigh       = 1.1f;                               //输送机高度设为1.2m

            CreateModel.PilerParameter PP;
            PP.PilerHigh   = HP.Size.y;
            PP.PilerLength = HP.Size.z + 2 * HP.ColumnWidth;

            Vector3 PlatFormSize;

            PlatFormSize.x = CargoSize.x + 2 * RCP.RollerRadius + tempsize;; //平台X尺寸与输送机宽度一致
            PlatFormSize.y = RCP.RCHigh - RCP.RollerRadius / 8;              //平台高度与输送线高度一致,低于输送机高度为滚筒半径的1/8
            PlatFormSize.z = CargoSize.z + CargoSize.z / 10;

            ParametersList1 PL;

            PL.Distance  = Distance0; PL.HP = HP; PL.MHP = MHP; PL.RCP = RCP; PL.PP = PP;
            PL.CargoSize = CargoSize; PL.PlatFormSize = PlatFormSize;
            PAL          = PL;
        }
Exemple #9
0
        //创建仓库场景
        #region Create_Scene
        public void Create_Scene(ParametersList1 PL, Varibles.PositionsList POL, string Path)
        {
            CreateModel.HighStoreShelf_Parameter HP  = PL.HP;
            CreateModel.MultiHighBay_Parameter   MHP = PL.MHP;
            CreateModel.RollerConveyor_Parameter RCP = PL.RCP;
            float      TempValue1     = RCP.RCLength;
            float      TempValue2     = RCP.RCWidth;
            float      TempValue3     = TempValue2 - HP.Size.x;
            GameObject WarehouseScene = new GameObject(); WarehouseScene.name = SceneName; //创建场景
                                                                                           //货物
            GameObject Cargos = new GameObject();

            Cargos.name = "Cargos"; Cargos.transform.parent = WarehouseScene.transform;
            Cargos.transform.localPosition = new Vector3(0, 0, 0);
            //添加入口输送机
            GameObject EnterConveyor = new GameObject(); EnterConveyor.name = "EnterConveyor";

            CreateModel.RollerConveyorType       type = CreateModel.RollerConveyorType.Intact;
            CreateModel.RollerConveyor_Parameter RCP2 = new CreateModel.RollerConveyor_Parameter();
            RCP2 = PL.RCP; RCP2.RCHigh = RCP2.RCHigh - 0.1f; RCP2.RCLength = PL.HP.Size.x * 2 + PL.MHP.HookupDistance + PL.MHP.TunnelWidth - RCP2.RCWidth;
            CreateModel.RollerConveyor.Create_RollerConveyor(RCP2, EnterConveyor, type);
            EnterConveyor.transform.parent = WarehouseScene.transform;
            EnterConveyor.transform.Rotate(0, -90, 0);
            EnterConveyor.transform.localPosition = new Vector3((RCP2.RCLength + TempValue3), 0, -TempValue2 / 2);
            //添加顶升移载机设备
            GameObject LiftTransferGroup = new GameObject(); LiftTransferGroup.name = "LiftTransferGroup";

            Create_LiftTransferGroup(PL, LiftTransferGroup);
            //LiftTransferGroup.transform.Rotate(0, 180, 0);
            LiftTransferGroup.transform.parent        = WarehouseScene.transform;
            LiftTransferGroup.transform.localPosition = new Vector3(0, 0, -TempValue2 / 2);
            //添加输送设备(垂直于高架库方向)
            GameObject ConveyorGroup2 = new GameObject(); ConveyorGroup2.name = "ConveyorGroup2";

            Create_ConveyorGroup2(PL, ConveyorGroup2);
            //ConveyorGroup2.transform.Rotate(0, 180, 0);
            ConveyorGroup2.transform.parent        = WarehouseScene.transform;
            ConveyorGroup2.transform.localPosition = new Vector3(0, 0, -TempValue2 / 2);
            //为场景添加输送设备(平行于高架库方向)
            GameObject ConveyorGroup = new GameObject(); ConveyorGroup.name = "ConveyorGroup";

            Create_ConveyorGroup1(PL, ConveyorGroup);
            //ConveyorGroup.transform.Rotate(0, 180, 0);
            ConveyorGroup.transform.parent        = WarehouseScene.transform;
            ConveyorGroup.transform.localPosition = new Vector3(0, 0, -TempValue2);
            //为场景添加高架库设备
            GameObject HighBays1 = new GameObject(); HighBays1.name = "HighBayGroup";

            CreateModel.HighBay2.Create_HighBays(HP, MHP, HighBays1);
            HighBays1.transform.parent        = WarehouseScene.transform;
            HighBays1.transform.localPosition = new Vector3(0, 0, -(3 * TempValue1 + TempValue2));
            //为场景添加堆垛机设备
            GameObject PilerGroup = new GameObject(); PilerGroup.name = "PilerGroup";

            Create_Pilers(PL, PilerGroup);
            //PilerGroup.transform.Rotate(0, 180, 0);
            PilerGroup.transform.parent        = WarehouseScene.transform;
            PilerGroup.transform.localPosition = new Vector3(0, 0, -(TempValue1 + TempValue2));
            //为场景添加出口输送线
            GameObject ExitConveyors = new GameObject();

            ExitConveyors.name = "ExitConveyors";
            int   i         = (PL.MHP.Num + 1) / 2;
            float TempValue = PL.RCP.RCWidth / 2 - ((2 * i + 1) * PL.HP.Size.x + i * PL.MHP.TunnelWidth + i * PL.MHP.HookupDistance);

            Create_ExitConveyors(PL, ExitConveyors);
            ExitConveyors.transform.parent        = WarehouseScene.transform;
            ExitConveyors.transform.localPosition = new Vector3(TempValue, 0, 0);

            ////给场景添加Message
            WarehouseScene.AddComponent <ShowData.ShowKeyPositionData>();
            ShowData.ShowKeyPositionData ShowKeyData = WarehouseScene.GetComponent <ShowData.ShowKeyPositionData>();
            Varibles.KeyPositionsData    KPD         = new Varibles.KeyPositionsData();
            Create_SceneInfo(ref PL, out KPD);
            ShowKeyData.KeyPositionsData = KPD;
            GameObject Cargo = new GameObject(); Cargo.name = "Cargo";

            CreateModel.Cargo1.Create_Cargo(KPD.CargoSize, Cargo);
            Tools.MyClass.CreatePrefab(WarehouseScene, Path);
            Tools.MyClass.CreatePrefab(Cargo, path2 + Cargo.name);

            //根据参数预创建一个存储状态面板
            ControlUnit.UIControl.BinsPanel.Ajustment(MHP.Num, HP.FloorsNum, HP.ColumnsNum);
            ControlUnit.UIControl.BinsPanel.Ajustment2(MHP.Num, HP.FloorsNum, HP.ColumnsNum);
        }