/// <summary> /// 安装元素到指定坐标 /// </summary> /// <param name="pos"></param> public void InstallPickedUpObject(InstallPos pos) { if (pickedUpObj != null && !pickedUpObj.Installed) { pickedUpObj.NormalInstall(pos); pos.Attach(pickedUpObj); } }
/// <summary> /// 将未安装的元素安装到指定的坐标 /// </summary> /// <param name="posList"></param> public void InstallPosListObjects(List <InstallPos> posList) { InstallPos pos; for (int i = 0; i < posList.Count; i++) { pos = posList[i]; pickedUpObj = GetUnInstalledObj(pos.name); pickedUpObj.NormalInstall(pos); pos.Attach(pickedUpObj); } }