2023-12-15 09:07:07 +01:00
|
|
|
using UnityEngine.Networking;
|
|
|
|
|
|
|
|
public static class MarcsWebLogger
|
|
|
|
{
|
|
|
|
// Log method
|
|
|
|
public static void Log(string message)
|
|
|
|
{
|
|
|
|
string url = $"https://log.m-g.tech/?message={message}";
|
|
|
|
UnityWebRequest webRequest = UnityWebRequest.Get(url);
|
|
|
|
webRequest.SendWebRequest();
|
|
|
|
}
|
2023-12-15 11:11:32 +01:00
|
|
|
// check logs at https://log.m-g.tech/logs"
|
|
|
|
// clear with https://log.m-g.tech/clear"
|
2023-12-15 09:07:07 +01:00
|
|
|
}
|