public void initAllDayForRead(AllDay allDayOrigin) { allMass = 0; //Всего с.в. из загруженных тонн за день и по сменам dayMassSV = allDayOrigin.getDayMassSV(); nightMassSV = allDayOrigin.getNightMassSV(); allMassSV = allDayOrigin.getAllMassSV(); //Всего воды из за груженных тонн за день и по сменам dayMassWater = allDayOrigin.getDayMassWater(); nightMassWater = allDayOrigin.getNightMassWater(); allMassWater = allDayOrigin.getAllMassWater(); serovodorodDay = allDayOrigin.getSerovodorotDay(); serovodorotNight = allDayOrigin.getSerovodorotNight(); dateTime = allDayOrigin.getDateTime(); //relation - отношение,рассчёт отношения массы с.в. и воды relationDaySV = allDayOrigin.getRelationDaySV(); relationNightSV = allDayOrigin.getRelationNightSV(); relationAllSV = allDayOrigin.getRelationAllSV(); //Метан за сутки //allDayMetan = allDayOrigin.Meta; GPAvalue = allDayOrigin.getGPA(); foreach (ProductComputationyInDay prodRead in allDayOrigin.getProductCompInDaysByVisable()) { productCompForReads.AddLast(new ProductCompForRead(prodRead)); } }
//ToDo !!!!!!!!!!!!! public void initTextListForDay(GameObject content) { float hightContent = 0f; initDefaultTextList(content, true); for (int i = content.transform.childCount - 1; i != allDay_Now.getProductCompInDaysByVisable().Count; i--) { itemsContentDay[i].SetActive(false); } textContentDay.Clear(); for (int i = 0; i < allDay_Now.getProductCompInDaysByVisable().Count + 1; i++) { textContentDay.AddLast(itemsContentDay[i].GetComponent <FieldMassScript>()); hightContent += 40; } RectTransform rt = content.GetComponent <RectTransform>(); //rt.sizeDelta = new Vector2(-467, hightContent); rt.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, hightContent); }