public static void Error(string msg)
{
DateTime dateTime = DateTime.Now;
string s = $"{dateTime.ToString("yyyy-MM-dd HH:mm:ss")} {TimeHelper.ClientNow()} {msg}";
error.WriteLine(s);
if (IsNeedFlush)
{
error.Flush();
}
info.WriteLine(s);
if (IsNeedFlush)
{
info.Flush();
}
#if UNITY_EDITOR
UnityEngine.Debug.LogError(s);
#endif
long timeNow = TimeHelper.ClientNow();
if (timeNow - SendToServerTime > SendToServerFrequency)
{
SendToServerTime = timeNow;
}
}