static void Init() { if (Application.isEditor) { return; } var logLevel = ISN_Settings.Instance.LogLevel; ISN_LoggerNativeAPI.SetLogLevel(logLevel.Info, logLevel.Warning, logLevel.Error); }
public static void LogError(object message) { if (!ISN_Settings.Instance.LogLevel.Error) { return; } if (Application.isEditor) { Debug.LogError(message); } else { ISN_LoggerNativeAPI.NativeLog("Error: " + message.ToString()); } }