public static void Log(string logString, string stackTrace, LogType type) { switch (type) { case LogType.Log: Debug.Log(logString); break; case LogType.Warning: LogModule.WarningLog(logString); break; case LogType.Error: LogModule.ErrorLog(logString); break; } }
public static void Log(string logString, string stackTrace, LogType type) { if (!PlatformHelper.IsEnableDebugMode()) { return; } switch (type) { case LogType.Log: LogModule.DebugLog(logString); break; case LogType.Warning: LogModule.WarningLog(logString); break; case LogType.Error: LogModule.ErrorLog(logString); break; } }