/** * Actualiza la información de la ventana "Positions(0/0)". * @return void */ public void UpdatePositionLog() { int nSync = 0; string auxLog = ""; string auxSyncLog = ""; // Get positions name and sync state for (int i = 0; i < targetControl.Count(); i++) { TargetModel model = targetControl.GetTarget(i).GetComponent <TargetModel>(); auxLog += model.GetName() + "\n"; if (!model.GetSync()) { auxSyncLog += "No sync" + "\n"; } else { auxSyncLog += "\n"; nSync++; } } // Write positions name positionLog.text = auxLog; // Write positions sync state positionSyncLog.text = auxSyncLog; // Fix containers to fit names AdjustContent(positionLog.gameObject, contentPositionLog); // Count data UpdateCountData(nSync, targetControl.Count()); }