DGJ hai 4 meses
pai
achega
01276cb209

+ 16 - 1
Assets/HotUpdate/Scripts/Scripts/Project/Demo/HumitureDataStatistics.cs

@@ -58,7 +58,22 @@ public class HumitureDataStatistics : MonoBehaviour
         {
             string[] str = listTimerStr[i].Split(' ');
 
-            listTimeKD[num++].text = str[1];
+
+
+            // listTimeKD[num++].text = str[1];
+            string[] str2 = str[1].Split(':');
+            int timers = int.Parse(str2[0]);
+            timers++;
+            Debug.Log("DGJ ===> timers " + timers);
+            if(timers<10)
+            {
+                listTimeKD[num++].text = "0"+timers.ToString() + ":00";
+            }
+            else
+            {
+                listTimeKD[num++].text =  timers.ToString() + ":00";
+            }
+            
         }
 
         DrawLine(humidityLine, lineHumidityPoint);

+ 14 - 2
Assets/HotUpdate/Scripts/Scripts/Project/Demo/NoiseDataStatistics.cs

@@ -41,7 +41,19 @@ public class NoiseDataStatistics : MonoBehaviour
         {
             string[] str = listTimerStr[i].Split(' ');
 
-            listTimeKD[num++].text = str[1];
+            // listTimeKD[num++].text = str[1];
+            string[] str2 = str[1].Split(':');
+            int timers = int.Parse(str2[0]);
+            timers++;
+            Debug.Log("DGJ ===> timers " + timers);
+            if (timers < 10)
+            {
+                listTimeKD[num++].text = "0" + timers.ToString() + ":00";
+            }
+            else
+            {
+                listTimeKD[num++].text = timers.ToString() + ":00";
+            }
         }
 
         DrawLine(noiseLine, lineNoisePoint);
@@ -99,7 +111,7 @@ public class NoiseDataStatistics : MonoBehaviour
         for (int i = 0; i < listVertices.Count; i++)
         {
             vertices[i] = listVertices[i];
-            Debug.Log(listVertices[i].ToString());
+          //  Debug.Log(listVertices[i].ToString());
         }
 
         int[] triangles = new int[listTriangles.Count];

+ 13 - 1
Assets/HotUpdate/Scripts/Scripts/Project/Demo/OscillateDataStatistics.cs

@@ -66,7 +66,19 @@ public class OscillateDataStatistics : MonoBehaviour
         {
             string[] str = listTimerStr[i].Split(' ');
 
-            listTimeKD[num++].text = str[1];
+            // listTimeKD[num++].text = str[1];
+            string[] str2 = str[1].Split(':');
+            int timers = int.Parse(str2[0]);
+            timers++;
+            Debug.Log("DGJ ===> timers " + timers);
+            if (timers < 10)
+            {
+                listTimeKD[num++].text = "0" + timers.ToString() + ":00";
+            }
+            else
+            {
+                listTimeKD[num++].text = timers.ToString() + ":00";
+            }
         }