Skip to content

Commit f32965c

Browse files
committed
Fix compile errors and warnings
1 parent a055cc8 commit f32965c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

Assets/Plugins/WebGL/WebTools/WebToolPlugins.cs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public static void SetVariable(string variableName, string value)
5252
{
5353
#if UNITY_WEBGL && !UNITY_EDITOR
5454
_SetStringVariable(variableName, value);
55-
_AddTimeTrackingEvent(eventName);
5655
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
5756
Debug.Log($"<color=#00CCCC>{nameof(WebToolPlugins)}.{nameof(SetVariable)} set {variableName}: {value}</color>");
5857
#endif
@@ -136,8 +135,10 @@ public static string GetUserAgent()
136135
return _GetUserAgent();
137136
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
138137
Debug.Log($"{nameof(WebToolPlugins)}.{nameof(GetUserAgent)} called");
139-
#endif
140138
return "undefined";
139+
#else
140+
return "undefined";
141+
#endif
141142
}
142143

143144
/// <summary>
@@ -164,8 +165,10 @@ public static float GetTotalMemorySize()
164165
return GetMegaBytes(bytes);
165166
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
166167
Debug.Log($"{nameof(WebToolPlugins)}.{nameof(GetTotalMemorySize)} called");
167-
#endif
168168
return -1f;
169+
#else
170+
return -1f;
171+
#endif
169172
}
170173

171174
/// <summary>
@@ -194,8 +197,10 @@ public static float GetStaticMemorySize()
194197
return GetMegaBytes(bytes);
195198
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
196199
Debug.Log($"{nameof(WebToolPlugins)}.{nameof(GetStaticMemorySize)} called");
197-
#endif
198200
return -1f;
201+
#else
202+
return -1f;
203+
#endif
199204
}
200205

201206
/// <summary>
@@ -209,8 +214,10 @@ public static float GetDynamicMemorySize()
209214
return GetMegaBytes(bytes);
210215
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
211216
Debug.Log($"{nameof(WebToolPlugins)}.{nameof(GetDynamicMemorySize)} called");
212-
#endif
213217
return -1f;
218+
#else
219+
return -1f;
220+
#endif
214221
}
215222

216223
/// <summary>
@@ -223,8 +230,10 @@ public static float GetNativeMemorySize()
223230
return GetDynamicMemorySize() + GetStaticMemorySize();
224231
#elif UNITY_EDITOR && WEBTOOLS_LOG_CALLS
225232
Debug.Log($"{nameof(WebToolPlugins)}.{nameof(GetNativeMemorySize)} called");
226-
#endif
227233
return -1f;
234+
#else
235+
return -1f;
236+
#endif
228237
}
229238

230239
/// <summary>

0 commit comments

Comments
 (0)